Sha256: 67ab8e91952ba1193c67d6117cba866555ff27cc0e089f3c44f44ca00522efee

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 Bytes

Contents

FactoryBot.define do
  factory :location do
    latitude { Faker::Number.between(from: -90, to: 90) }
    longitude { Faker::Number.between(from: -180, to: 180) }

    trait :fourth_quadrant do
      latitude { Faker::Number.between(from: -0.1, to: -90) }
      longitude { Faker::Number.between(from: -0.1, to: -180) }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
infinum_json_api_setup-0.0.8 spec/factories/location.rb
infinum_json_api_setup-0.0.7 spec/factories/location.rb
infinum_json_api_setup-0.0.6 spec/factories/location.rb
infinum_json_api_setup-0.0.5 spec/factories/location.rb
infinum_json_api_setup-0.0.4 spec/factories/location.rb
infinum_json_api_setup-0.0.3 spec/factories/location.rb