1 2 3 4 5 6 7 8 9 10 11 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