diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2016-09-16 22:02:52 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2016-09-16 22:02:52 +0200 |
commit | ce3979dc01ea1018abbb0ba8e5378998dab00ed2 (patch) | |
tree | 798d223e49cfeedba9c58a1ad97c58a8cf444854 /spec | |
parent | 8a58fa78de266fa8ba66d5667f646ba15937cfdc (diff) | |
download | norsk-urskog-registrations-ce3979dc01ea1018abbb0ba8e5378998dab00ed2.tar.gz norsk-urskog-registrations-ce3979dc01ea1018abbb0ba8e5378998dab00ed2.tar.bz2 norsk-urskog-registrations-ce3979dc01ea1018abbb0ba8e5378998dab00ed2.zip |
Fix specs.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/registration_spec.rb | 4 |
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 |