Sha256: 53105b2eee4c5e201039d3b669116a8083645cb9ebef554b66e8cfe839b294e1
Contents?: true
Size: 396 Bytes
Versions: 3
Compression:
Stored size: 396 Bytes
Contents
require 'json' module CacheableFlash module TestHelpers def flash_cookie return {} unless cooked_flash = response.cookies['flash'] JSON(cooked_flash) rescue JSON::ParserError {} end def testable_flash(response) return {} unless cooked_flash = response.cookies['flash'] JSON(cooked_flash) rescue JSON::ParserError {} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cacheable_flash-0.3.2 | lib/cacheable_flash/test_helpers.rb |
cacheable_flash-0.3.1 | lib/cacheable_flash/test_helpers.rb |
cacheable_flash-0.3.0 | lib/cacheable_flash/test_helpers.rb |