Sha256: 8fdb8ce508e1ab5932494107595027f7d310dcf1d4440a48d0f0de06bb6cbcab

Contents?: true

Size: 610 Bytes

Versions: 98

Compression:

Stored size: 610 Bytes

Contents

FactoryGirl.define do
  factory :address, :class => MLS::Address do
    street_number { Kernel.rand(1000).to_s }
    street        { Faker::Address.street_name }
    neighborhood  { Faker::Name.name }
    city          { Faker::Address.city }
    county        { |p| p.city }
    state         { Faker::Address.state_abbr }
    country       'US'
    postal_code   { Faker::Address.zip_code }
    formatted_address { |p| "#{p.street_number} #{p.street}, #{p.city}, #{p.state}, #{p.postal_code}" }
    latitude      { Kernel.rand((-90.0)..(90.0)) }
    longitude     { Kernel.rand((-180.0)..(180.0)) }
  end
end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
mls-0.2.17 test/factories/address.rb
mls-0.2.16 test/factories/address.rb
mls-0.2.15 test/factories/address.rb
mls-0.2.14 test/factories/address.rb
mls-0.2.13 test/factories/address.rb
mls-0.2.12 test/factories/address.rb
mls-0.2.11 test/factories/address.rb
mls-0.2.9.1 test/factories/address.rb
mls-0.2.10 test/factories/address.rb
mls-0.2.9 test/factories/address.rb
mls-0.2.8.2 test/factories/address.rb
mls-0.2.8.1 test/factories/address.rb
mls-0.2.8 test/factories/address.rb
mls-0.2.7 test/factories/address.rb
mls-0.2.6 test/factories/address.rb
mls-0.2.5 test/factories/address.rb
mls-0.2.4 test/factories/address.rb
mls-0.2.3 test/factories/address.rb