aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/workbench_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/workbench_spec.rb
parent2f8ff43fe89a8c78575fdb7a9737b5484117087c (diff)
downloadchouette-core-3b3d3252aa514fbd5b2c12a6cc0a2825d9d8b12e.tar.bz2
Add validation and specs to models on objectid_format presence
Diffstat (limited to 'spec/models/workbench_spec.rb')
-rw-r--r--spec/models/workbench_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/workbench_spec.rb b/spec/models/workbench_spec.rb
index 037537b60..3b9ed6b07 100644
--- a/spec/models/workbench_spec.rb
+++ b/spec/models/workbench_spec.rb
@@ -7,6 +7,7 @@ RSpec.describe Workbench, :type => :model do
it { should validate_presence_of(:name) }
it { should validate_presence_of(:organisation) }
+ it { should validate_presence_of(:objectid_format) }
it { should belong_to(:organisation) }
it { should belong_to(:line_referential) }