Sha256: 2aa4a4c31e805559cd8a7c8bf2494e5727ac95e9c1aa428df932e51cb57caad6
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
require "test/unit" require "rails/test_help" require "cacheable_flash/test_helpers" class TestController < ActionController::Base include CacheableFlash def index flash["notice"] = "In index" render :text => "WORKING!!!" end end class ControllerTest < ActionController::TestCase include CacheableFlash::TestHelpers def setup @controller = TestController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end def test_cacheable_flash_action get :index assert_equal "In index", flash_cookie["notice"] end end
Version data entries
3 entries across 3 versions & 1 rubygems