diff options
| author | Robert Dober | 2017-09-27 13:55:09 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-27 13:55:09 +0200 |
| commit | 103e77e1fd28bf6f5ba3ad4f64a0681f2e9dd76f (patch) | |
| tree | 1735f2f103fe0f8fcc5fa6b66a292912c6036041 /spec/support | |
| parent | 28a42fb19174eafee38fe3c5f8fa58f89991f44a (diff) | |
| parent | d1bd434d78972d4f4156f3e3e864e075cad9e62d (diff) | |
| download | chouette-core-103e77e1fd28bf6f5ba3ad4f64a0681f2e9dd76f.tar.bz2 | |
Merge pull request #78 from af83/3520-workbench--add-output-association-to-ReferentialSuite
3520 workbench add output association to referential suite
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/referential.rb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb index 3b74cb639..6f60bd86b 100644 --- a/spec/support/referential.rb +++ b/spec/support/referential.rb @@ -52,8 +52,21 @@ RSpec.configure do |config| referential.add_member organisation, owner: true end - workbench = Workbench.create!(:name => "Gestion de l'offre", organisation: organisation, line_referential: line_referential, stop_area_referential: stop_area_referential) - referential = Referential.create! prefix: "first", name: "first", slug: "first", organisation: organisation, workbench: workbench + workbench = FactoryGirl.create( + :workbench, + name: "Gestion de l'offre", + organisation: organisation, + line_referential: line_referential, + stop_area_referential: stop_area_referential + ) + referential = FactoryGirl.create( + :referential, + prefix: "first", + name: "first", + slug: "first", + organisation: organisation, + workbench: workbench + ) end config.before(:each) do |
