diff options
| author | Xinhui | 2017-12-28 16:44:18 +0100 |
|---|---|---|
| committer | Xinhui | 2017-12-28 17:09:50 +0100 |
| commit | 33dafabfca862d3d1ee79c656071acce2ade1fb7 (patch) | |
| tree | 82d455c512e37ae80c24a63ce5f91c8bbbc93ca9 | |
| parent | 808c1d03a840914592b6ae28f3108dfe9e2360e6 (diff) | |
| download | chouette-core-33dafabfca862d3d1ee79c656071acce2ade1fb7.tar.bz2 | |
Fix spec LinePresenter due to no longer invalid factory
Refs #5313
| -rw-r--r-- | spec/factories/chouette_lines.rb | 4 | ||||
| -rw-r--r-- | spec/factories/chouette_stop_points.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/factories/chouette_lines.rb b/spec/factories/chouette_lines.rb index 95f760174..c013b9d2b 100644 --- a/spec/factories/chouette_lines.rb +++ b/spec/factories/chouette_lines.rb @@ -8,7 +8,7 @@ FactoryGirl.define do association :network, :factory => :network association :company, :factory => :company - + before(:create) do |line| line.line_referential ||= LineReferential.find_by! name: "first" end @@ -35,7 +35,7 @@ FactoryGirl.define do after(:create) do |line| line.routes.each do |route| route.stop_points.each do |stop_point| - comm = create(:stop_area, :area_type => "lda") + comm = create(:stop_area, :area_type => "gdl") stop_point.stop_area.update_attributes(:parent_id => comm.id) end end diff --git a/spec/factories/chouette_stop_points.rb b/spec/factories/chouette_stop_points.rb index 14e08b1ac..97baae2fd 100644 --- a/spec/factories/chouette_stop_points.rb +++ b/spec/factories/chouette_stop_points.rb @@ -2,7 +2,7 @@ FactoryGirl.define do factory :stop_point, :class => Chouette::StopPoint do sequence(:objectid) { |n| "test:StopPoint:#{n}:loc" } - association :stop_area, :factory => :stop_area + association :stop_area, :factory => :stop_area, area_type: "zdep" end end |
