diff options
| author | Xinhui | 2016-11-07 16:03:49 +0100 | 
|---|---|---|
| committer | Xinhui | 2016-11-07 16:03:49 +0100 | 
| commit | 360bf515230f76d836014df4a1b0623a64475915 (patch) | |
| tree | 820ce6ecdfc37593f76efb3457a80f4fe9dd8bf7 /spec/models | |
| parent | e464f9be6857a0e51f12166d9cf8e1128b41f56c (diff) | |
| download | chouette-core-360bf515230f76d836014df4a1b0623a64475915.tar.bz2 | |
Workbench assocation + policy in views
Refs #1786
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/workbench_spec.rb | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/spec/models/workbench_spec.rb b/spec/models/workbench_spec.rb index 023a65ea2..2b9bb3d18 100644 --- a/spec/models/workbench_spec.rb +++ b/spec/models/workbench_spec.rb @@ -12,4 +12,11 @@ RSpec.describe Workbench, :type => :model do    it { should belong_to(:organisation) }    it { should belong_to(:line_referential) }    it { should belong_to(:stop_area_referential) } + +  it { should have_many(:lines).through(:line_referential) } +  it { should have_many(:networks).through(:line_referential) } +  it { should have_many(:companies).through(:line_referential) } +  it { should have_many(:group_of_lines).through(:line_referential) } + +  it { should have_many(:stop_areas).through(:stop_area_referential) }  end | 
