Sha256: 7e6665f58642e8b64ab97c68346ab8a5f1560e8346e46606bcadef1ce89ccf33
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' describe DummyController do include CacheableFlash::TestHelpers 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 flash_cookie['errors'].should == @expected_flash['errors'] flash_cookie['notice'].should == @expected_flash['notice'] flash_cookie.should == @expected_flash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cacheable_flash-0.2.9 | spec/controllers/dummy_controller_spec.rb |