Sha256: d9354092dccdcc347988f78346fcbd2808ed90200d565e241eb04c83078b071f
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' describe DummyController do describe "cookie flash is sticky" do it "should not clear after request" do # because they are only cleared out by javascripts get "/dummy/index" response.should have_flash_cookie('errors', "This is an Error") response.should have_flash_cookie('notice', "This is a Notice") get "/dummy/no_flash" response.should have_flash_cookie('errors', "This is an Error") response.should have_flash_cookie('notice', "This is a Notice") end end describe "cookie flash is stackable" do it "should not overwrite when new flash added" do # because they are only cleared out by javascripts get "/dummy/index" response.should have_flash_cookie('errors', "This is an Error") response.should have_flash_cookie('notice', "This is a Notice") get "/dummy/error" response.should have_flash_cookie('errors', "This is an Error") response.should have_flash_cookie('errors', "This is a real Error") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cacheable_flash-0.2.10 | spec/requests/cacheable_flash_sticky_spec.rb |