diff options
| author | Marc Florisson | 2014-02-05 16:19:56 +0100 |
|---|---|---|
| committer | Marc Florisson | 2014-02-05 16:19:56 +0100 |
| commit | ae16ccf446ccd3857a8fdbb5cd2964349bb85317 (patch) | |
| tree | 9e00fb46d0343de788f9684183859b47a812df8a /spec/models | |
| parent | a96a2e1a2fbd09285a0315fb289fd847cf3e0248 (diff) | |
| download | chouette-core-ae16ccf446ccd3857a8fdbb5cd2964349bb85317.tar.bz2 | |
fix rule_parameter_set creation when referential.create
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/referential_spec.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb index daee718d5..a11bbd9de 100644 --- a/spec/models/referential_spec.rb +++ b/spec/models/referential_spec.rb @@ -7,13 +7,17 @@ describe Referential do it { should validate_presence_of(:prefix) } it { should validate_presence_of(:time_zone) } + it "create a rule_parameter_set" do + referential = Factory.create(:referential) + referential.rule_parameter_sets.size.should == 1 + 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 @@ -39,9 +43,9 @@ 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 @@ -63,4 +67,4 @@ describe Chouette::AccessPoint do subject.projection_y.should be_nil end -end
\ No newline at end of file +end |
