We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9632607 commit a6db8d5Copy full SHA for a6db8d5
test/controllers/auth_controller_test.rb
@@ -3,7 +3,7 @@
3
class AuthControllerTest < ActionDispatch::IntegrationTest
4
test 'valid credentials returns JWT' do
5
u = users(:yo)
6
- b = Base64.encode64(u.email + ':123greetings')
+ b = Base64.encode64("#{u.email}:123greetings")
7
get '/api/v1/auth', headers: { Authorization: "Basic #{b}" }
8
assert_equal(200, response.status)
9
assert_equal(u.id, JwtWrapper.decode(JSON.parse(response.body))['user_id'])
0 commit comments