diff options
| author | cedricnjanga | 2017-11-10 17:23:45 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-10 17:23:45 +0100 |
| commit | 3b3d3252aa514fbd5b2c12a6cc0a2825d9d8b12e (patch) | |
| tree | 5d22bfc466fd50b76dd805f891b62f59132d22fa /spec/models/workbench_spec.rb | |
| parent | 2f8ff43fe89a8c78575fdb7a9737b5484117087c (diff) | |
| download | chouette-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.rb | 1 |
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) } |
