diff options
| author | Xinhui | 2017-07-25 12:20:36 +0200 |
|---|---|---|
| committer | Xinhui | 2017-07-25 12:20:36 +0200 |
| commit | 32a9d94028f9a21d3b7678a67d2b57b4b9ce057d (patch) | |
| tree | 72d01c574cce25f46c2b01c27dca7591e77b3cf5 /spec | |
| parent | 9ced7dec0adcdd886fba68e311d8d784434d9af1 (diff) | |
| download | chouette-core-32a9d94028f9a21d3b7678a67d2b57b4b9ce057d.tar.bz2 | |
StifReflexAttributesSupport for StopArea 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 |
