Sha256: 94ac3be58055e73243ae95045aed1de18e8b3e75d358005e2f6b6138f56b0abb
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
require 'spec_helper' describe DummyController do render_views before(:each) do @expected_flash = { 'errors' => "This is an Error", 'notice' => "This is a Notice" } get :index end describe "TestHelpers" do it "should assign flashes to cookie" do response.should have_flash_cookie('errors', @expected_flash['errors']) response.should have_flash_cookie('notice', @expected_flash['notice']) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cacheable_flash-0.3.0 | spec/controllers/dummy_controller_spec.rb |
cacheable_flash-0.2.10 | spec/controllers/dummy_controller_spec.rb |