spec/support/test_helpers.rb in cacheable_flash-0.2.3 vs spec/support/test_helpers.rb in cacheable_flash-0.2.4
- old
+ new
@@ -1,9 +1,11 @@
+require 'json'
+
module CacheableFlash
module TestHelpers
def flash_cookie
return {} unless cookies['flash']
- ActiveSupport::JSON.decode(cookies['flash'])
+ JSON(cookies['flash'])
rescue JSON::ParserError
{}
end
end
end