summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-09-16 22:02:52 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-09-16 22:02:52 +0200
commitce3979dc01ea1018abbb0ba8e5378998dab00ed2 (patch)
tree798d223e49cfeedba9c58a1ad97c58a8cf444854
parent8a58fa78de266fa8ba66d5667f646ba15937cfdc (diff)
downloadnorsk-urskog-registrations-ce3979dc01ea1018abbb0ba8e5378998dab00ed2.tar.gz
norsk-urskog-registrations-ce3979dc01ea1018abbb0ba8e5378998dab00ed2.tar.bz2
norsk-urskog-registrations-ce3979dc01ea1018abbb0ba8e5378998dab00ed2.zip
Fix specs.
-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