summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-10 14:52:35 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-10 14:53:12 +0200
commit2b664060f45efd7329b53f87f83cc764a5a53bdb (patch)
treec853ff7ab7e62836e4c505856a5d60880fbe218a /spec
parente95f4cf46ed0047083fb3825de02416ab7340feb (diff)
downloadnorsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.tar.gz
norsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.tar.bz2
norsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.zip
Don't display error message when there's no errors.
Diffstat (limited to 'spec')
-rw-r--r--spec/registration_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb
index 4b27bbe..db7db70 100644
--- a/spec/registration_spec.rb
+++ b/spec/registration_spec.rb
@@ -46,6 +46,10 @@ describe RegistrationApp do
expect(last_response).to be_ok
end
+ it 'should not display any errors' do
+ expect(last_response.body).not_to include("Det er feil i skjemaet")
+ end
+
it 'displays submitted data to user' do
expect(last_response).to match(/Bandnavn\: Imbalance/)
expect(last_response).to match(/Hjemsted\: Oslo/)