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