diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-10 14:24:06 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-10 14:24:06 +0200 |
commit | f8cd616b1e7a4565c31579ab17951901902b4453 (patch) | |
tree | 065772c9c0f29580bfbff9788089a33b087f8de9 /spec/registration_spec.rb | |
parent | b65549d1e2f7df62c9f941ed92b00759351e0c5f (diff) | |
download | norsk-urskog-registrations-f8cd616b1e7a4565c31579ab17951901902b4453.tar.gz norsk-urskog-registrations-f8cd616b1e7a4565c31579ab17951901902b4453.tar.bz2 norsk-urskog-registrations-f8cd616b1e7a4565c31579ab17951901902b4453.zip |
Rerender form instead of redirecting on error.
Diffstat (limited to 'spec/registration_spec.rb')
-rw-r--r-- | spec/registration_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb index 6532f3e..33df205 100644 --- a/spec/registration_spec.rb +++ b/spec/registration_spec.rb @@ -88,11 +88,10 @@ describe RegistrationApp do end it 'should reject request and go back to the registration form' do - expect(last_response.status).to eq(302) + expect(last_response.body).to match /form id="registration-form"/ end it 'should display an error message' do - follow_redirect! expect(last_response.body).to include "Du må ha med minst én låt" end end |