Skip to content

Commit

Permalink
Specify that api/courses params are permitted now
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed Oct 31, 2024
1 parent 899f688 commit ec08b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/api/public/v1/courses_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@

it 'delegates to the CourseSearchService' do
expect(CourseSearchService).to have_received(:call).with(
hash_including(filter: ActionController::Parameters.new(funding_type: 'salary'))
hash_including(filter: ActionController::Parameters.new(funding_type: 'salary').permit!)
)
end
end
Expand Down

0 comments on commit ec08b4d

Please sign in to comment.