Skip to content

Commit

Permalink
Add missed coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kizr committed Jan 3, 2025
1 parent c6d836a commit faa4661
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/wizards/claims/request_clawback_wizard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,22 @@
expect(claim).to have_received(:save!)
end
end

describe "#mentor_trainings" do
it "returns the claim's mentor trainings that are not assured and orders them by mentor full name" do
expect(wizard.mentor_trainings).to eq([mentor_training])
end
end

describe "#step_name_for_mentor_training_clawback" do
it "returns the step name for the mentor training clawback step" do
expect(wizard.step_name_for_mentor_training_clawback(mentor_training)).to eq("mentor_training_clawback_#{mentor_training.id}".to_sym)
end
end

describe "#esfa_responses_for_mentor_trainings" do
it "returns an array of hashes containing the mentor training id, number of hours and reason for clawback" do
expect(wizard.esfa_responses_for_mentor_trainings).to eq([{ id: mentor_training.id, number_of_hours: nil, reason_for_clawback: nil }])
end
end
end

0 comments on commit faa4661

Please sign in to comment.