diff options
| author | Zog | 2018-01-31 14:02:54 +0100 |
|---|---|---|
| committer | Zog | 2018-01-31 14:02:54 +0100 |
| commit | 38762e7e0292cbb70a59bcd5b5260eeefd042c94 (patch) | |
| tree | fb4a5797c58bec93e37b677fc40b45e661aac098 /spec | |
| parent | e12c06e4a5733c22588982db7cd857126cc6296d (diff) | |
| download | chouette-core-38762e7e0292cbb70a59bcd5b5260eeefd042c94.tar.bz2 | |
Fix StopArea validation breaking the specs
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/factories/chouette_stop_areas.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/factories/chouette_stop_areas.rb b/spec/factories/chouette_stop_areas.rb index 94517f856..9b4764781 100644 --- a/spec/factories/chouette_stop_areas.rb +++ b/spec/factories/chouette_stop_areas.rb @@ -3,9 +3,10 @@ FactoryGirl.define do sequence(:objectid) { |n| "FR:#{n}:ZDE:#{n}:STIF" } sequence(:name) { |n| "stop_area_#{n}" } sequence(:registration_number) { |n| "test-#{n}" } - area_type { Chouette::AreaType.all.sample } + area_type { Chouette::AreaType.commercial.sample } latitude {10.0 * rand} longitude {10.0 * rand} + kind "commercial" association :stop_area_referential |
