Skip to content

Commit

Permalink
Fix cookie test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatolond committed Nov 8, 2024
1 parent 112f044 commit 0d7ba69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/controllers/sessions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ class SessionsControllerTest < ActionDispatch::IntegrationTest
password = "good_password"
RetroMeetClient.expects(:login).returns("good-token")
post session_url(sessions: { email:, password: })
assert_equal "good-token", cookies["Authorization"]
jar = ActionDispatch::Cookies::CookieJar.build(request, cookies.to_hash)
assert_equal "good-token", jar.signed["authorization"]
assert_redirected_to root_path
end
test "on create, should fail with proper message on password error" do
Expand Down

0 comments on commit 0d7ba69

Please sign in to comment.