aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 8e62b3b64..c530ea650 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -8,7 +8,12 @@ FactoryGirl.define do
f.time_zone "Europe/Paris"
end
+ factory :organisation do |f|
+ f.sequence(:name) { |n| "Organisation #{n}" }
+ end
+
factory :user do |f|
+ f.association :organisation
f.sequence(:email) { |n| "chouette#{n}@dryade.priv" }
f.password "secret"
f.password_confirmation "secret"