Introduce an administrator factory
Just a factory that handles users with an admin flag
This commit is contained in:
parent
5e9914875c
commit
574b6ec194
|
@ -8,5 +8,9 @@ FactoryGirl.define do
|
|||
password_confirmation 'password'
|
||||
confirmed_at Time.now - 15.minutes
|
||||
email
|
||||
|
||||
factory :administrator do
|
||||
admin true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue