diff options
| author | cedricnjanga | 2017-11-27 14:57:58 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-27 14:57:58 +0100 |
| commit | d832ccaa091595bbab0ee0e4c5e863905963686c (patch) | |
| tree | c696b71c0290a1f28eda7b7b737987289a785a29 /spec/models/referential_spec.rb | |
| parent | 9b2edfbf417bb5ee8e6e76d881a4fc6e20b0eda2 (diff) | |
| parent | 77abde1626e317b5017b2ff15b7a9def759b7701 (diff) | |
| download | chouette-core-d832ccaa091595bbab0ee0e4c5e863905963686c.tar.bz2 | |
Merge branch '4941-refactoring_object_id'
Diffstat (limited to 'spec/models/referential_spec.rb')
| -rw-r--r-- | spec/models/referential_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb index ad9c43010..d0b1d6447 100644 --- a/spec/models/referential_spec.rb +++ b/spec/models/referential_spec.rb @@ -12,6 +12,12 @@ describe Referential, :type => :model do it { should belong_to(:workbench) } it { should belong_to(:referential_suite) } + context "validation" do + subject { build_stubbed(:referential) } + + it { should validate_presence_of(:objectid_format) } + end + context ".referential_ids_in_periode" do it 'should retrieve referential id in periode range' do range = ref.metadatas.first.periodes.sample |
