aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/referential_spec.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-11-10 17:23:45 +0100
committercedricnjanga2017-11-10 17:23:45 +0100
commit3b3d3252aa514fbd5b2c12a6cc0a2825d9d8b12e (patch)
tree5d22bfc466fd50b76dd805f891b62f59132d22fa /spec/models/referential_spec.rb
parent2f8ff43fe89a8c78575fdb7a9737b5484117087c (diff)
downloadchouette-core-3b3d3252aa514fbd5b2c12a6cc0a2825d9d8b12e.tar.bz2
Add validation and specs to models on objectid_format presence
Diffstat (limited to 'spec/models/referential_spec.rb')
-rw-r--r--spec/models/referential_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb
index ad9c43010..987eea30a 100644
--- a/spec/models/referential_spec.rb
+++ b/spec/models/referential_spec.rb
@@ -12,6 +12,8 @@ describe Referential, :type => :model do
it { should belong_to(:workbench) }
it { should belong_to(:referential_suite) }
+ # it { should validate_presence_of(:objectid_format) }
+
context ".referential_ids_in_periode" do
it 'should retrieve referential id in periode range' do
range = ref.metadatas.first.periodes.sample