aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/workbench_spec.rb
diff options
context:
space:
mode:
authorXinhui2016-10-18 15:34:47 +0200
committerXinhui2016-10-18 15:34:53 +0200
commitf9814e27bcaabbf69c66f43989236e40a334e0c1 (patch)
tree7d16d0b33fb83d732b918fbd08d29c839ddb5478 /spec/models/workbench_spec.rb
parenta9aa01e2271fda736e13d1a10bd62f45e1508330 (diff)
downloadchouette-core-f9814e27bcaabbf69c66f43989236e40a334e0c1.tar.bz2
Relation Workbench - LineReferential & StopAreaReferential
Refs #1784
Diffstat (limited to 'spec/models/workbench_spec.rb')
-rw-r--r--spec/models/workbench_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/workbench_spec.rb b/spec/models/workbench_spec.rb
index bafe95e75..023a65ea2 100644
--- a/spec/models/workbench_spec.rb
+++ b/spec/models/workbench_spec.rb
@@ -9,4 +9,7 @@ RSpec.describe Workbench, :type => :model do
it { should validate_presence_of(:name) }
it { should validate_presence_of(:organisation) }
+ it { should belong_to(:organisation) }
+ it { should belong_to(:line_referential) }
+ it { should belong_to(:stop_area_referential) }
end