diff options
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/line_referential_spec.rb | 1 | ||||
| -rw-r--r-- | spec/models/stop_area_referential_spec.rb | 1 | ||||
| -rw-r--r-- | spec/models/workbench_spec.rb | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/line_referential_spec.rb b/spec/models/line_referential_spec.rb index 8b06f07ad..02838a4a7 100644 --- a/spec/models/line_referential_spec.rb +++ b/spec/models/line_referential_spec.rb @@ -7,5 +7,6 @@ RSpec.describe LineReferential, :type => :model do it { should validate_presence_of(:name) } it { is_expected.to have_many(:line_referential_syncs) } + it { is_expected.to have_many(:workbenches) } it { should validate_presence_of(:sync_interval) } end diff --git a/spec/models/stop_area_referential_spec.rb b/spec/models/stop_area_referential_spec.rb index 87b99b18b..271badff8 100644 --- a/spec/models/stop_area_referential_spec.rb +++ b/spec/models/stop_area_referential_spec.rb @@ -6,4 +6,5 @@ RSpec.describe StopAreaReferential, :type => :model do end it { is_expected.to have_many(:stop_area_referential_syncs) } + it { is_expected.to have_many(:workbenches) } end 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 |
