Skip to content

Commit

Permalink
Use cookies.get_cookie instead of hash_for
Browse files Browse the repository at this point in the history
Since hash_for was removed in an earlier version of rack-test.
get_cookie is present in >= 2.0 and we require >=2.0.8 so we should be good
  • Loading branch information
TobiasBales committed Aug 15, 2023
1 parent 9198a95 commit 0dc6885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/action_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_getting_session_value_after_session_reset
get '/set_session_value'
assert_response :success
assert cookies['_session_id']
session_cookie = cookies.send(:hash_for)['_session_id']
session_cookie = cookies.get_cookie('_session_id')

get '/call_reset_session'
assert_response :success
Expand Down

0 comments on commit 0dc6885

Please sign in to comment.