aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories
diff options
context:
space:
mode:
authorZog2018-05-04 09:03:12 +0200
committerZog2018-05-04 09:03:12 +0200
commitfc427e5807f62416fdc93a8c6dda006137f06537 (patch)
tree98bc61f38590596bd743efa24ff8db70c4395eeb /spec/factories
parent7839c6cc052156383d17be27df864f92f40f273c (diff)
downloadchouette-core-fc427e5807f62416fdc93a8c6dda006137f06537.tar.bz2
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/referentials.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/factories/referentials.rb b/spec/factories/referentials.rb
index 0276a47be..bbaa7c313 100644
--- a/spec/factories/referentials.rb
+++ b/spec/factories/referentials.rb
@@ -9,6 +9,13 @@ FactoryGirl.define do
time_zone "Europe/Paris"
ready { true }
objectid_format "stif_netex"
+ transient do
+ status :active
+ end
+
+ after(:create) do |referential, evaluator|
+ referential.send "#{evaluator.status}!"
+ end
factory :workbench_referential do
association :workbench