diff --git a/spec/controllers/api/public/v1/courses_controller_spec.rb b/spec/controllers/api/public/v1/courses_controller_spec.rb index 720522c180..29cd5e6dc9 100644 --- a/spec/controllers/api/public/v1/courses_controller_spec.rb +++ b/spec/controllers/api/public/v1/courses_controller_spec.rb @@ -306,7 +306,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