aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/referential_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/referential_spec.rb')
-rw-r--r--spec/models/referential_spec.rb56
1 files changed, 0 insertions, 56 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb
index 505630586..2b6432a2e 100644
--- a/spec/models/referential_spec.rb
+++ b/spec/models/referential_spec.rb
@@ -7,59 +7,3 @@ describe Referential, :type => :model do
expect(referential.rule_parameter_sets.size).to eq(1)
end
end
-
-describe Chouette::StopArea, :type => :model do
- # check override methods
-
- subject {Factory(:stop_area)}
-
- it "should return referential projection " do
- subject.referential.projection_type='27572'
- expect(subject.projection).to eq(subject.referential.projection_type)
- end
-
- it "should return projection coordinates when referential has projection" do
- subject.latitude = 45
- subject.longitude = 0
- subject.referential.projection_type='27572'
- expect(subject.projection_x).not_to be_nil
- expect(subject.projection_y).not_to be_nil
- end
-
- it "should return nil projection coordinates when referential has no projection" do
- subject.latitude = 45
- subject.longitude = 0
- subject.referential.projection_type=nil
- expect(subject.projection_x).to be_nil
- expect(subject.projection_y).to be_nil
- end
-
-end
-
-describe Chouette::AccessPoint, :type => :model do
- # check override methods
-
- subject {Factory(:access_point)}
-
- it "should return referential projection " do
- subject.referential.projection_type='27572'
- expect(subject.projection).to eq(subject.referential.projection_type)
- end
-
- it "should return projection coordinates when referential has projection" do
- subject.latitude = 45
- subject.longitude = 0
- subject.referential.projection_type='27572'
- expect(subject.projection_x).not_to be_nil
- expect(subject.projection_y).not_to be_nil
- end
-
- it "should return nil projection coordinates when referential has no projection" do
- subject.latitude = 45
- subject.longitude = 0
- subject.referential.projection_type=nil
- expect(subject.projection_x).to be_nil
- expect(subject.projection_y).to be_nil
- end
-
-end