From 574b6ec1947b7cef22b621cf886fdac02f8d1a2f Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 24 May 2015 00:54:37 +0300 Subject: [PATCH] Introduce an administrator factory Just a factory that handles users with an admin flag --- spec/factories/users.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 2fe4679..f2d225c 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -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