setup and rubocop corrections

This commit is contained in:
mmoser committed 2018-11-10 11:32:05 -06:00
1 parent f09ea5faeb
commit 904a071fc0
39 files changed
+589 -5

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
# frozen_string_literal: true
module AuthTestHelper
def user_token user
AuthenticateUser.new(email: user.email, password: 'password').perform
end
def auth_headers user, headers = {}
headers["HTTP_AUTHORIZATION"] = user_token(user)
headers
end
end