From 7e7bb718a3909803b08810dcd6951786d2fa30ed Mon Sep 17 00:00:00 2001 From: Iain McNulty Date: Thu, 31 Oct 2024 08:56:05 +0000 Subject: [PATCH] Specify that api/courses params are permitted now --- spec/controllers/api/public/v1/courses_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/api/public/v1/courses_controller_spec.rb b/spec/controllers/api/public/v1/courses_controller_spec.rb index 50d3ebb4a1..540101b08b 100644 --- a/spec/controllers/api/public/v1/courses_controller_spec.rb +++ b/spec/controllers/api/public/v1/courses_controller_spec.rb @@ -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