summaryrefslogtreecommitdiffstats
path: root/spec/support/band_factory.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/band_factory.rb')
-rw-r--r--spec/support/band_factory.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/support/band_factory.rb b/spec/support/band_factory.rb
index 3ae2589..b092653 100644
--- a/spec/support/band_factory.rb
+++ b/spec/support/band_factory.rb
@@ -8,7 +8,9 @@ module BandFactory
:label => 'A Record Label',
:bio => 'A short bio about the band',
:contact_name => 'Contact Name',
- :contact_addr => "Streetname 666\n1234Someplace Nice",
+ :contact_street => "Streetname 666",
+ :contact_postcode => "1234",
+ :contact_city => "Someplace Nice",
:contact_phone => '98765432',
:contact_email => 'band@example.com',
:members => "Member 1 (Instrument 1, 24\nMember 2 (Instrument 2)\nMember 3",
@@ -24,7 +26,9 @@ module BandFactory
'shortbio' => opts[:bio],
'contact' => {
'name' => opts[:contact_name],
- 'addr' => opts[:contact_addr],
+ 'street' => opts[:contact_street],
+ 'postcode' => opts[:contact_postcode],
+ 'city' => opts[:contact_city],
'phone' => opts[:contact_phone],
'email' => opts[:contact_email]
},