mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix cop violations
This commit is contained in:
parent
92ec9f270d
commit
9804f8f9ce
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ class CacheStoreTest < ActionDispatch::IntegrationTest
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert cookies["_session_id"]
|
assert cookies["_session_id"]
|
||||||
|
|
||||||
sid = Rack::Session::SessionId.new(cookies['_session_id'])
|
sid = Rack::Session::SessionId.new(cookies["_session_id"])
|
||||||
session = @cache.read("_session_id:#{sid.private_id}")
|
session = @cache.read("_session_id:#{sid.private_id}")
|
||||||
@cache.delete("_session_id:#{sid.private_id}")
|
@cache.delete("_session_id:#{sid.private_id}")
|
||||||
@cache.write("_session_id:#{sid.public_id}", session)
|
@cache.write("_session_id:#{sid.public_id}", session)
|
||||||
|
@ -189,7 +189,7 @@ class CacheStoreTest < ActionDispatch::IntegrationTest
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert cookies["_session_id"]
|
assert cookies["_session_id"]
|
||||||
|
|
||||||
sid = Rack::Session::SessionId.new(cookies['_session_id'])
|
sid = Rack::Session::SessionId.new(cookies["_session_id"])
|
||||||
session = @cache.read("_session_id:#{sid.private_id}")
|
session = @cache.read("_session_id:#{sid.private_id}")
|
||||||
@cache.delete("_session_id:#{sid.private_id}")
|
@cache.delete("_session_id:#{sid.private_id}")
|
||||||
@cache.write("_session_id:#{sid.public_id}", session)
|
@cache.write("_session_id:#{sid.public_id}", session)
|
||||||
|
|
Loading…
Reference in a new issue