aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorXinhui2016-11-30 10:56:15 +0100
committerXinhui2016-11-30 10:56:15 +0100
commitb5bf612f5359bfeaa5fb8d63a787c416ae457240 (patch)
treee4d2d32469d6cf8b7cf4461122586f2282fa44bf /spec
parent9ae87f820d1f0083f6ec3813f3c80e86164c5abf (diff)
downloadchouette-core-b5bf612f5359bfeaa5fb8d63a787c416ae457240.tar.bz2
Remove stop_area area_type itl
Diffstat (limited to 'spec')
-rw-r--r--spec/models/chouette/stop_area_spec.rb18
1 files changed, 4 insertions, 14 deletions
diff --git a/spec/models/chouette/stop_area_spec.rb b/spec/models/chouette/stop_area_spec.rb
index cdddb407d..e9e1514c9 100644
--- a/spec/models/chouette/stop_area_spec.rb
+++ b/spec/models/chouette/stop_area_spec.rb
@@ -1,11 +1,11 @@
require 'spec_helper'
describe Chouette::StopArea, :type => :model do
- let!(:quay) { create :stop_area, :area_type => "Quay" }
+ # FIXME !!!!!!!!
+ let!(:quay) { create :stop_area, :area_type => "zdep" }
let!(:boarding_position) { create :stop_area, :area_type => "BoardingPosition" }
- let!(:commercial_stop_point) { create :stop_area, :area_type => "CommercialStopPoint" }
- let!(:stop_place) { create :stop_area, :area_type => "StopPlace" }
- let!(:itl) { create :stop_area, :area_type => "ITL" }
+ let!(:commercial_stop_point) { create :stop_area, :area_type => "lda" }
+ let!(:stop_place) { create :stop_area, :area_type => "zdlp" }
# Refs #1627
# describe '#objectid' do
@@ -127,10 +127,6 @@ describe Chouette::StopArea, :type => :model do
subject = create :stop_area, :stop_area_type => "stop_place"
expect(subject.area_type).to eq("StopPlace")
end
- it "should have area_type of ITL when stop_area_type is set to itl" do
- subject = create :stop_area, :stop_area_type => "itl"
- expect(subject.area_type).to eq("ITL")
- end
end
describe ".parent" do
@@ -161,12 +157,6 @@ describe Chouette::StopArea, :type => :model do
subject = create :stop_area, :area_type => "StopPlace"
expect(subject.possible_children).to match_array([stop_place, commercial_stop_point])
end
-
- it "should find no children of type ITL for stop area type ITL" do
- subject = create :stop_area, :area_type => "ITL"
- expect(subject.possible_children).to match_array([stop_place, commercial_stop_point, quay, boarding_position])
- end
-
end
describe ".possible_parents" do