Sha256: eaa05783276f156dfc3e4d79f15e300bf17fc308e5678d98c9f452294c4b7448
Contents?: true
Size: 612 Bytes
Versions: 11
Compression:
Stored size: 612 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
11 entries across 11 versions & 1 rubygems