diff options
| author | Robert | 2018-01-09 15:02:29 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2018-01-10 17:43:03 +0100 | 
| commit | a9078add9036d97ede702c14b064c216365dc5b1 (patch) | |
| tree | 9ac51b45a59b241be5b4dfe9707e24918640fc29 /spec/factories | |
| parent | de93869cd6f9e842d8c0b968a3ff40a1ff521774 (diff) | |
| download | chouette-core-a9078add9036d97ede702c14b064c216365dc5b1.tar.bz2 | |
Fixes: #5499; Added validations and associations
Diffstat (limited to 'spec/factories')
| -rw-r--r-- | spec/factories/workbenches.rb | 1 | ||||
| -rw-r--r-- | spec/factories/workgroups.rb | 6 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/spec/factories/workbenches.rb b/spec/factories/workbenches.rb index 0f26559d8..98fdd6ad9 100644 --- a/spec/factories/workbenches.rb +++ b/spec/factories/workbenches.rb @@ -7,5 +7,6 @@ FactoryGirl.define do      association :line_referential      association :stop_area_referential      association :output, factory: :referential_suite +    association :workgroup    end  end diff --git a/spec/factories/workgroups.rb b/spec/factories/workgroups.rb index d9647ae1a..792deddf8 100644 --- a/spec/factories/workgroups.rb +++ b/spec/factories/workgroups.rb @@ -1,7 +1,7 @@  FactoryGirl.define do    factory :workgroup do -    name "MyString" -    stop_area_referential nil -    line_referential nil +    sequence(:name) { |n| "Workgroup ##{n}" } +    association :line_referential +    association :stop_area_referential    end  end | 
