aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/referential.rb
diff options
context:
space:
mode:
authorGuillaume2017-09-28 13:55:46 +0200
committerGuillaume2017-09-28 13:55:46 +0200
commit98bb8a1a9b763d30800ed394c3950ba93242d114 (patch)
tree805e8aa6cc750ef74aaabd90d471f9b25f2e4cff /spec/support/referential.rb
parent2867f7b992ea38934f69e86dd8d6dc9cc95b0afe (diff)
parent689a8f7c89ea0841fee1e2da97dacf98ff458104 (diff)
downloadchouette-core-98bb8a1a9b763d30800ed394c3950ba93242d114.tar.bz2
Merge branch 'master' into 4466-compliance_check_sets
Diffstat (limited to 'spec/support/referential.rb')
-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