1
0
Fork 0
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:
Rafael Mendonça França 2019-12-18 17:07:44 -03:00
parent 92ec9f270d
commit 9804f8f9ce
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -172,7 +172,7 @@ class CacheStoreTest < ActionDispatch::IntegrationTest
assert_response :success
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}")
@cache.delete("_session_id:#{sid.private_id}")
@cache.write("_session_id:#{sid.public_id}", session)
@ -189,7 +189,7 @@ class CacheStoreTest < ActionDispatch::IntegrationTest
assert_response :success
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}")
@cache.delete("_session_id:#{sid.private_id}")
@cache.write("_session_id:#{sid.public_id}", session)