Modify local instead of global request

in apply_authentication_headers_for helper
to allow usage of different authenticated user in one testcase
This commit is contained in:
Thor77 2018-11-25 20:06:58 +01:00
parent 9a41b19e97
commit 3bb1e74172
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 1 additions and 1 deletions

View File

@ -3,6 +3,6 @@
module AuthHelpers module AuthHelpers
def apply_authentication_headers_for(user) def apply_authentication_headers_for(user)
user_headers = user.create_new_auth_token user_headers = user.create_new_auth_token
@request.headers.merge!(user_headers) request.headers.merge!(user_headers)
end end
end end