From 2b664060f45efd7329b53f87f83cc764a5a53bdb Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 10 Oct 2015 14:52:35 +0200 Subject: Don't display error message when there's no errors. --- spec/registration_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec') 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/) -- cgit v1.2.3