Sha256: 162b8cdc9567810e4505517e587da70a821ada1cd70b6d838546251f5c1f56b3

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

require 'spec_helper'

describe DummyController do

  render_views

  it "should override" do
    get :override
    controller.flash[:notice].should == ['message']
  end

  it "should build a stack" do
    get :stack
    controller.flash[:notice].should == ['original','message','another']
  end

  it "should allow transformation" do
    get :stack
    controller.flash[:notice].stack.should == 'original<br/>message<br/>another'
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stackable_flash-0.0.3 spec/controllers/dummy_controller_spec.rb
stackable_flash-0.0.2 spec/controllers/dummy_controller_spec.rb
stackable_flash-0.0.1 spec/controllers/dummy_controller_spec.rb