diff options
Diffstat (limited to 'spec/models/referential_spec.rb')
| -rw-r--r-- | spec/models/referential_spec.rb | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb index a11bbd9de..5ea88ad20 100644 --- a/spec/models/referential_spec.rb +++ b/spec/models/referential_spec.rb @@ -13,58 +13,3 @@ describe Referential do end end -describe Chouette::StopArea do - # check override methods - - subject {Factory(:stop_area)} - - it "should return referential projection " do - subject.referential.projection_type='27572' - subject.projection.should == 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' - subject.projection_x.should_not be_nil - subject.projection_y.should_not 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 - subject.projection_x.should be_nil - subject.projection_y.should be_nil - end - -end - -describe Chouette::AccessPoint do - # check override methods - - subject {Factory(:access_point)} - - it "should return referential projection " do - subject.referential.projection_type='27572' - subject.projection.should == 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' - subject.projection_x.should_not be_nil - subject.projection_y.should_not 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 - subject.projection_x.should be_nil - subject.projection_y.should be_nil - end - -end |
