CurrentUser: remove #as method.
Replace with CurrentUser#scoped.
This commit is contained in:
@@ -60,7 +60,7 @@ class ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def as(user, &block)
|
||||
CurrentUser.as(user, &block)
|
||||
CurrentUser.scoped(user, &block)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user