summaryrefslogtreecommitdiffstats
path: root/spec/registration_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/registration_spec.rb')
-rw-r--r--spec/registration_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb
index 95ed6a0..d1875d7 100644
--- a/spec/registration_spec.rb
+++ b/spec/registration_spec.rb
@@ -45,7 +45,7 @@ describe RegistrationApp do
it 'should redirect to registrations closed page' do
expect(last_response).to be_redirect
follow_redirect!
- expect(last_response.location).to match '/registrations_closed'
+ expect(last_request.url).to match '/registrations_closed'
end
end
end
@@ -183,7 +183,7 @@ describe RegistrationApp do
it 'redirects to registration closed message' do
expect(last_response).to be_redirect
follow_redirect!
- expect(last_response.location).to match '/registrations_closed'
+ expect(last_request.url).to match '/registrations_closed'
end
end
end