summaryrefslogtreecommitdiffstats
path: root/spec/registration_spec.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-09-09 16:54:50 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-09-09 16:56:06 +0200
commit032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d (patch)
tree3c9d5c6ee730730c8e281def9582974c1ec134de /spec/registration_spec.rb
parenta147a9a6c761d5d867c24bbea09f4d558591e07c (diff)
downloadnorsk-urskog-registrations-032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d.tar.gz
norsk-urskog-registrations-032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d.tar.bz2
norsk-urskog-registrations-032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d.zip
Split contact address into street, postcode and city.
Diffstat (limited to 'spec/registration_spec.rb')
-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 d1875d7..9dc7616 100644
--- a/spec/registration_spec.rb
+++ b/spec/registration_spec.rb
@@ -87,7 +87,7 @@ describe RegistrationApp do
expect(last_response).to match(/Kort bio\: #{band_params['shortbio']}/)
expect(last_response).to match(/Kontaktperson: #{band_params['contact']['name']}/)
- expect(last_response).to match(/Kontaktadresse: #{band_params['contact']['addr']}/)
+ expect(last_response).to match(/Kontaktadresse: #{band_params['contact']['street']}, #{band_params['contact']['postcode']} #{band_params['contact']['city']}/)
expect(last_response).to match(/Telefon: #{band_params['contact']['phone']}/)
expect(last_response).to match(/Epost: #{band_params['contact']['email']}/)
@@ -157,7 +157,7 @@ describe RegistrationApp do
end
context 'with no contact address' do
- include_examples('form with errors', {:contact_addr => ''})
+ include_examples('form with errors', {:contact_city => '', :contact_postcode => '', :contact_street => ''})
end
context 'with no contact phone' do