Module: CacheableFlash::TestHelpers
- Included in:
- RspecMatchers
- Defined in:
- lib/cacheable_flash/test_helpers.rb
Instance Method Summary collapse
Instance Method Details
#flash_cookie ⇒ Object
6 7 8 9 10 11 |
# File 'lib/cacheable_flash/test_helpers.rb', line 6 def return {} unless cooked_flash = response.['flash'] JSON(cooked_flash) rescue JSON::ParserError {} end |
#flash_cookie_for(response) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/cacheable_flash/test_helpers.rb', line 13 def (response) return {} unless cooked_flash = response.['flash'] JSON(cooked_flash) rescue JSON::ParserError {} end |