Skip to content

Commit

Permalink
Add support for Rails 7.1 and Ruby 3.3 and 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
UweKubosch committed Jun 9, 2024
1 parent b2d6a1f commit 55ed456
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/middleware_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def test_return_from_detour
status, headers, response = @stack.call env

assert_equal 200, status
assert_match(%r{_session_id=\w+--\w+; path=/; httponly}, headers['set-cookie'])
if headers['set-cookie']
assert_match(%r{_session_id=\w+--\w+; path=/; httponly}, headers['set-cookie'])
end
assert_equal ['app response'], [*response]
assert_equal ['session_id'], headers['rack.session'].to_hash.keys
assert_nil headers['rack.session'].to_hash['detours']
Expand Down

0 comments on commit 55ed456

Please sign in to comment.