# File lib/cacheable_flash/test_helpers.rb, line 6 def flash_cookie return {} unless cooked_flash = response.cookies['flash'] JSON(cooked_flash) rescue JSON::ParserError {} end
# File lib/cacheable_flash/test_helpers.rb, line 13 def flash_cookie_for(response) return {} unless cooked_flash = response.cookies['flash'] JSON(cooked_flash) rescue JSON::ParserError {} end