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