summaryrefslogtreecommitdiffstats
path: root/spec/features
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/features
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/features')
-rw-r--r--spec/features/register_band_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/register_band_spec.rb b/spec/features/register_band_spec.rb
index f75315d..5d812bc 100644
--- a/spec/features/register_band_spec.rb
+++ b/spec/features/register_band_spec.rb
@@ -47,7 +47,9 @@ feature "Submit registration form" do
within ('#form-contact-info') do
expect(find_field('Navn:').value).to eql(@band_params['contact']['name'])
- expect(find_field('Postadresse:').value.gsub("\r\n", "\n")).to eql(@band_params['contact']['addr'])
+ expect(find_field('Adresse:').value).to eql(@band_params['contact']['street'])
+ expect(find_field('Postnr:').value).to eql(@band_params['contact']['postcode'])
+ expect(find_field('Sted:').value).to eql(@band_params['contact']['city'])
expect(find_field('Tlf:').value).to eql(@band_params['contact']['phone'])
expect(find_field('E-post:').value).to eql(@band_params['contact']['email'])
end