Scope controller test sign in
This commit is contained in:
parent
11b15da215
commit
2ababaa695
|
|
@ -4,6 +4,6 @@ module AuthHelpers
|
|||
def apply_authentication_headers_for(user)
|
||||
user_headers = user.create_new_auth_token
|
||||
request.headers.merge!(user_headers)
|
||||
sign_in(user) if respond_to?(:sign_in)
|
||||
sign_in(user, scope: :user) if respond_to?(:sign_in)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue