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.3.5 test/factories/address.rb
mls-0.3.4 test/factories/address.rb
mls-0.3.3 test/factories/address.rb
mls-0.3.2 test/factories/address.rb
mls-0.3.1 test/factories/address.rb
mls-0.3.0 test/factories/address.rb
mls-0.2.54 test/factories/address.rb
mls-0.2.53 test/factories/address.rb
mls-0.2.52 test/factories/address.rb
mls-0.2.51 test/factories/address.rb
mls-0.2.50 test/factories/address.rb
mls-0.2.49 test/factories/address.rb
mls-0.2.48 test/factories/address.rb
mls-0.2.47 test/factories/address.rb
mls-0.2.46 test/factories/address.rb
mls-0.2.45 test/factories/address.rb
mls-0.2.44 test/factories/address.rb
mls-0.2.43 test/factories/address.rb
mls-0.2.42 test/factories/address.rb
mls-0.2.41 test/factories/address.rb