aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
authorLuc Donnet2017-09-27 21:57:22 +0200
committerLuc Donnet2017-09-27 21:57:22 +0200
commitc86a9c0bd4e8cb7bc677051e44e1e33d1419a409 (patch)
tree045a6a1172b31c950e824450e349015790a9889f /spec/support
parent16fc6a184311c0ab5e1463398b91f8a716bcf4db (diff)
parent55779bdf1737eea5e5ae79bacfebabbc249643af (diff)
downloadchouette-core-c86a9c0bd4e8cb7bc677051e44e1e33d1419a409.tar.bz2
Merge branch 'master' of github.com:AF83/stif-boiv
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/referential.rb17
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