aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/workbench_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/workbench_spec.rb')
-rw-r--r--spec/models/workbench_spec.rb7
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