From ce3979dc01ea1018abbb0ba8e5378998dab00ed2 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 16 Sep 2016 22:02:52 +0200 Subject: Fix specs. --- spec/registration_spec.rb | 4 ++-- 1 file 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 -- cgit v1.2.3