diff options
Diffstat (limited to 'spec/support/contact_factory.rb')
-rw-r--r-- | spec/support/contact_factory.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/support/contact_factory.rb b/spec/support/contact_factory.rb new file mode 100644 index 0000000..f05e9a1 --- /dev/null +++ b/spec/support/contact_factory.rb @@ -0,0 +1,12 @@ +module ContactFactory + def create_contact_params(params = {}) + par = { + 'name' => 'Contact Name', + 'street' => "Streetname 666", + 'postcode' => "1234", + 'city' => "Someplace Nice", + 'phone' => '98765432', + 'email' => 'band@example.com', + }.merge(params) + end +end |