Merge pull request #345 from jonasheinrich/feature/MeetingPluginIssue1565

added a locked user to the user factories
pull/362/head
sschu 11 years ago
commit de63d6db2e
  1. 10
      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

Loading…
Cancel
Save