Skip to content

Commit

Permalink
fix previoux form of impot part
Browse files Browse the repository at this point in the history
  • Loading branch information
JeSuisUnCaillou committed Jan 21, 2025
1 parent 2b694f8 commit 8c1bead
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/authorization_definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ shared:
type: production
previouses:
- id: api_impot_particulier_sandbox
form_id: api-impot-particulier-production
form_id: api-impot-particulier-sandbox
blocks:
- name: basic_infos
- name: personal_data
Expand Down
4 changes: 4 additions & 0 deletions spec/models/authorization_definition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
let(:authorization_request_class) { AuthorizationRequest::APIImpotParticulierSandbox }

it { is_expected.to be_a AuthorizationRequestForm }

it 'selects the previous stage form' do
expect(previous_stage_form.id).to eq('api-impot-particulier-sandbox')
end
end
end
end

0 comments on commit 8c1bead

Please sign in to comment.