From 0cafe8fbab735a7eedd4d09b4b381f28d482d66b Mon Sep 17 00:00:00 2001 From: dooda Date: Wed, 21 Aug 2013 01:25:14 +0200 Subject: [PATCH] added a locked user to the user factories --- spec/factories/user_factory.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/factories/user_factory.rb b/spec/factories/user_factory.rb index 58cde2d9dd..f5f308bbfa 100644 --- a/spec/factories/user_factory.rb +++ b/spec/factories/user_factory.rb @@ -58,5 +58,15 @@ FactoryGirl.define do factory :deleted_user, :class => DeletedUser do status User::STATUSES[:builtin] end + + factory :locked_user do + firstname 'Locked' + lastname 'User' + sequence(:login) { |n| "bob#{n}" } + sequence(:mail) {|n| "bob#{n}.bobbit@bob.com" } + password 'adminADMIN!' + password_confirmation 'adminADMIN!' + status User::STATUSES[:locked] + end end end