summaryrefslogtreecommitdiff
path: root/spec/controllers/health_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/health_controller_spec.rb')
-rw-r--r--spec/controllers/health_controller_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/health_controller_spec.rb b/spec/controllers/health_controller_spec.rb
index ce79f068fa1..94d2b420a4e 100644
--- a/spec/controllers/health_controller_spec.rb
+++ b/spec/controllers/health_controller_spec.rb
@@ -15,7 +15,9 @@ describe HealthController do
describe '#readiness' do
shared_context 'endpoint responding with readiness data' do
- subject { get :readiness }
+ let(:request_params) { {} }
+
+ subject { get :readiness, request_params }
it 'responds with readiness checks data' do
subject
@@ -58,7 +60,7 @@ describe HealthController do
context 'token passed as URL param' do
it_behaves_like 'endpoint responding with readiness data' do
- subject { get :readiness, token: token }
+ let(:request_params) { { token: token } }
end
end
end