Skip to content

Commit

Permalink
Correct test case for additional reasons.
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyE committed Aug 7, 2024
1 parent ca731cb commit bbef9c2
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,14 @@
expect(result.value![:applicants].first[:person_hbx_id]).to eq person.hbx_id
end

it 'should add determination_reason_codes' do
expect(result.value!.dig(:applicants, 0, :determination_reason_codes)).to eq ["Full Determination", "Gap Filling"]
context "when multiple determination reasons is enabled" do
before :each do
allow(EnrollRegistry).to receive(:feature_enabled?).with(:multiple_determination_submission_reasons).and_return(true)
end

it 'should add additional_reason_codes' do
expect(result.value!.dig(:applicants, 0, :additional_reason_codes)).to eq ["Full Determination", "Gap Filling"]
end
end

context 'application' do
Expand Down

0 comments on commit bbef9c2

Please sign in to comment.