diff options
| author | Alban Peignier | 2018-03-15 11:49:56 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-15 11:49:56 +0100 |
| commit | c427ad507e6ba9083e96e330814d8095a6c817b7 (patch) | |
| tree | 5de57f07f6fc1c4abfa1b037ef6db3a049733d7e /spec | |
| parent | 478ec46371279b304effae0a9934d1fac38918a3 (diff) | |
| parent | 34e463ce7ae08a08c8106e68544ddf43cc378c8d (diff) | |
| download | chouette-core-c427ad507e6ba9083e96e330814d8095a6c817b7.tar.bz2 | |
Merge pull request #377 from af83/6107-bind-stop_area_referential-and-workgroups
Refs 6106 & 6107. Binds LineReferentials and StopAreaReferentials to Workgroups
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 |
