Sha256: d3b11669c4e644dfd2ce9afb262675715138d3895a2ebc300e210a6f79e59601

Contents?: true

Size: 697 Bytes

Versions: 5

Compression:

Stored size: 697 Bytes

Contents

#encoding: utf-8
FactoryGirl.define do
  factory :property do
    name 'House in the hill'
    url_name 'house_in_the_hill'
    description "This is a house in the hill"
    neighborhood
    latitude 10.00000
    longitude 10.0000
    address 'Evergreen rd 123'
    public_address 'Around evergreen avenue'
    covered_square_meters 10
    uncovered_square_meters 10
    rooms 4
    bathrooms 4
    amenities "gas: has it\ngos: has it too"
    keywords "gas, house, hill"
    for_rent true
    for_sale false
    images_attributes {
      {'0' =>
        {'file' =>
           Rack::Test::UploadedFile.new(Rails.root.join('spec/fixtures/image.jpg'), 'image/jpg')
        }
      }
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nubis_rails_boilerplate-0.0.11 skeletons/real_estate_app/spec/factories/properties.rb
nubis_rails_boilerplate-0.0.10 skeletons/real_estate_app/spec/factories/properties.rb
nubis_rails_boilerplate-0.0.9 skeletons/real_estate_app/spec/factories/properties.rb
nubis_rails_boilerplate-0.0.8 skeletons/real_estate_app/spec/factories/properties.rb
nubis_rails_boilerplate-0.0.7 skeletons/real_estate_app/spec/factories/properties.rb