Skip to content

Commit

Permalink
More formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein committed Dec 22, 2024
1 parent b198983 commit 550516c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_rack_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
res = Rack::MockRequest.new(rsd)
.get('/', 'HTTP_COOKIE' => bad_cookie)

assert_equal ({ 'counter' => 1 }).to_s, res.body
assert_equal res.body, { 'counter' => 1 }.to_s
cookie = res['Set-Cookie'][session_match]

refute_match(/#{bad_cookie}/, cookie)
Expand Down Expand Up @@ -252,7 +252,7 @@
res1 = req.get('/')
session = (cookie = res1['Set-Cookie'])[session_match]

assert_equal ({ 'counter' => 1 }).to_s, res1.body
assert_equal res1.body, { 'counter' => 1 }.to_s

res2 = rreq.get('/', 'HTTP_COOKIE' => cookie)
new_cookie = res2['Set-Cookie']
Expand Down

0 comments on commit 550516c

Please sign in to comment.