Skip to content

Commit

Permalink
fix: update Sessions#delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
MelTravelz committed Oct 22, 2023
1 parent e8eb2e0 commit fbc23c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/requests/api/v1/sessions_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@

expect(response).to have_http_status(201)

delete '/api/v1/logout', headers: headers
token = JSON.parse(response.body)['token']

delete '/api/v1/logout', headers: { 'Authorization' => "Bearer #{token}" }

expect(response).to have_http_status(204)

Expand Down

0 comments on commit fbc23c1

Please sign in to comment.