<commit_before>require 'rails_helper'
require_relative 'shared_examples_for_advocate_litigator'
require_relative 'shared_examples_for_step_validators'

RSpec.describe Claim::TransferClaimValidator, type: :validator do
  include_context "force-validation"

  let(:claim) { build :transfer_claim }
  let(:transfer_detail) { build :transfer_detail, claim: claim }

  include_examples 'common partial validations', [
    [
      :litigator_type,
      :elected_case,
      :transfer_stage_id,
      :transfer_date,
      :case_conclusion_id,
      :transfer_detail_combo,
    ],
    [
      :court,
      :case_number,
      :transfer_court,
      :transfer_case_number,
      :advocate_category,
      :case_concluded_at,
      :supplier_number,
      :amount_assessed,
      :evidence_checklist_ids,
    ],
    [],
    [ :offence ],
    [
      :total,
    ]
  ]

  before do<commit_msg>Fix transfer claim validator spec<commit_after>require 'rails_helper'
require_relative 'shared_examples_for_advocate_litigator'
require_relative 'shared_examples_for_step_validators'

RSpec.describe Claim::TransferClaimValidator, type: :validator do
  include_context "force-validation"

  let(:claim) { build :transfer_claim }
  let(:transfer_detail) { build :transfer_detail, claim: claim }

  include_examples 'common partial validations', [
    [
      :litigator_type,
      :elected_case,
      :transfer_stage_id,
      :transfer_date,
      :case_conclusion_id,
      :transfer_detail_combo,
    ],
    [
      :court,
      :case_number,
      :transfer_court,
      :transfer_case_number,
      :advocate_category,
      :case_concluded_at,
      :supplier_number,
      :amount_assessed,
      :evidence_checklist_ids,
    ],
    [],
    [ :offence ],
    [
      :transfer_fee,
      :total,
    ]
  ]

  before do
{'fraction_non_alphanumeric': 0.09387078961899503, 'fraction_numerical': 0.0, 'mean_word_length': 3.3142857142857145, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2009804', 'n_tokens_mistral': 597, 'n_tokens_neox': 578, 'n_words': 92}