Skip to content

Commit a6db8d5

Browse files
committed
1 parent 9632607 commit a6db8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/controllers/auth_controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class AuthControllerTest < ActionDispatch::IntegrationTest
44
test 'valid credentials returns JWT' do
55
u = users(:yo)
6-
b = Base64.encode64(u.email + ':123greetings')
6+
b = Base64.encode64("#{u.email}:123greetings")
77
get '/api/v1/auth', headers: { Authorization: "Basic #{b}" }
88
assert_equal(200, response.status)
99
assert_equal(u.id, JwtWrapper.decode(JSON.parse(response.body))['user_id'])

0 commit comments

Comments
 (0)