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.9.9 test/factories/address.rb
mls-0.9.8 test/factories/address.rb
mls-0.9.6 test/factories/address.rb
mls-0.9.5 test/factories/address.rb
mls-0.9.4 test/factories/address.rb
mls-0.9.3 test/factories/address.rb
mls-0.9.2 test/factories/address.rb
mls-0.9.1 test/factories/address.rb
mls-0.9.0 test/factories/address.rb
mls-0.8.2 test/factories/address.rb
mls-0.8.1 test/factories/address.rb
mls-0.8.0 test/factories/address.rb
mls-0.7.2 test/factories/address.rb
mls-0.7.1 test/factories/address.rb
mls-0.7.0 test/factories/address.rb
mls-0.6.7 test/factories/address.rb
mls-0.6.6 test/factories/address.rb
mls-0.6.5 test/factories/address.rb
mls-0.6.4 test/factories/address.rb
mls-0.6.3 test/factories/address.rb