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'
|
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
|
||||||
|
|
Loading…
Reference in New Issue