summaryrefslogtreecommitdiff
path: root/spec/support/matchers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r--spec/support/matchers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb
index 809453c4a3b..29d16ecbac7 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -59,9 +59,9 @@ module UrlAccess
def emulate_user(user)
user = case user
- when :user then Factory(:user)
+ when :user then create(:user)
when :visitor then nil
- when :admin then Factory(:admin)
+ when :admin then create(:admin)
else user
end
login_with(user) if user