FactoryGirl.define do
  factory :place do
    name "Test Place"
    address "Alexanderplatz 1"
    city "Berlin"
    latitude 52.500556
    longitude 13.398889
    is_established true
    description "The description of the place."
    contact_name "Anna Platz"
    contact_email "anna@teikei.de"
    contact_phone "+49 30 1234567"
    contact_function "coordinator"
    contact_url "http://example.com"
    user
    image
  end
end

FactoryGirl.define do
  factory :place do
    name "Test Place"
    address "Alexanderplatz 1"
    city "Berlin"
    latitude 52.500556
    longitude 13.398889
    is_established true
    description "The description of the place."
    contact_name "Anna Platz"
    contact_email "anna@teikei.de"
    contact_phone "+49 30 1234567"
    contact_function "coordinator"
    contact_url "http://example.com"
    image
    after(:create) { |place| place.users << build(:user) }
  end
end

Update user relation in place factory.
Update user relation in place factory.
