Remove backward compatibility of factories.
This commit is contained in:
parent
d52f06f380
commit
80fb38de7a
54 changed files with 261 additions and 279 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue