diff options
| author | Xinhui | 2017-07-25 14:57:26 +0200 |
|---|---|---|
| committer | Xinhui | 2017-07-25 14:57:26 +0200 |
| commit | 5187a629316b207e8db8fd917ff7111b6712d8dd (patch) | |
| tree | cf869a811b6de0cba7dcf3b34086b21e3655b7db /spec | |
| parent | 8f54a0e504f70e14e94dad810effdca5e85ee00c (diff) | |
| parent | 32a9d94028f9a21d3b7678a67d2b57b4b9ce057d (diff) | |
| download | chouette-core-5187a629316b207e8db8fd917ff7111b6712d8dd.tar.bz2 | |
Merge branch 'reflex_objectid'
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/chouette/stop_area_spec.rb | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/spec/models/chouette/stop_area_spec.rb b/spec/models/chouette/stop_area_spec.rb index 1a2ff8ede..293ae5202 100644 --- a/spec/models/chouette/stop_area_spec.rb +++ b/spec/models/chouette/stop_area_spec.rb @@ -7,16 +7,15 @@ describe Chouette::StopArea, :type => :model do let!(:commercial_stop_point) { create :stop_area, :area_type => "lda" } let!(:stop_place) { create :stop_area, :area_type => "zdlp" } - # Refs #1627 - # describe '#objectid' do - # subject { super().objectid } - # it { is_expected.to be_kind_of(Chouette::ObjectId) } - # end - - it { is_expected.to belong_to(:stop_area_referential) } - it { is_expected.to validate_presence_of :name } - it { is_expected.to validate_numericality_of :latitude } - it { is_expected.to validate_numericality_of :longitude } + describe '#objectid' do + subject { super().objectid } + it { should be_kind_of(Chouette::StifReflexObjectid) } + end + + it { should belong_to(:stop_area_referential) } + it { should validate_presence_of :name } + it { should validate_numericality_of :latitude } + it { should validate_numericality_of :longitude } # describe ".latitude" do # it "should accept -90 value" do |
