diff options
| author | Zog | 2018-03-13 14:59:27 +0100 |
|---|---|---|
| committer | Zog | 2018-03-14 09:45:26 +0100 |
| commit | 34e463ce7ae08a08c8106e68544ddf43cc378c8d (patch) | |
| tree | 7bec4387c1bbf54bc44f31552d5b6c8d07eac7e4 /spec | |
| parent | 14abadf37b591ec411d08247d3c460cfb0508faa (diff) | |
| download | chouette-core-34e463ce7ae08a08c8106e68544ddf43cc378c8d.tar.bz2 | |
Refs #6107
Binds LineReferentials and StopAreaReferentials to Workgroups, and
enforce uniqueness
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/workgroup_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/workgroup_spec.rb b/spec/models/workgroup_spec.rb index ac8d3fc98..97fff3d86 100644 --- a/spec/models/workgroup_spec.rb +++ b/spec/models/workgroup_spec.rb @@ -6,6 +6,8 @@ RSpec.describe Workgroup, type: :model do it{ should have_many(:workbenches) } it{ should validate_uniqueness_of(:name) } + it{ should validate_uniqueness_of(:stop_area_referential_id) } + it{ should validate_uniqueness_of(:line_referential_id) } it 'is not valid without a stop_area_referential' do workgroup.stop_area_referential_id = nil |
