Introduce an administrator factory

Just a factory that handles users with an admin flag
This commit is contained in:
Petko Bordjukov 2015-05-24 00:54:37 +03:00
parent 5e9914875c
commit 574b6ec194
1 changed files with 4 additions and 0 deletions

View File

@ -8,5 +8,9 @@ FactoryGirl.define do
password_confirmation 'password' password_confirmation 'password'
confirmed_at Time.now - 15.minutes confirmed_at Time.now - 15.minutes
email email
factory :administrator do
admin true
end
end end
end end