Sha256: 9c82b99e782c46a9415442421ec4cc28eddf066f72c5b2a34033f32481977574

Contents?: true

Size: 651 Bytes

Versions: 4

Compression:

Stored size: 651 Bytes

Contents

require 'spec_helper'

describe BootstrapFlashHelper do
  describe "bootstrap_flash" do

     it "should return flash message" do
       stub!(:flash).and_return({:warning => "Update Success!"})
       bootstrap_flash.should == "<div class=\"alert alert-warning\"><a class=\"close\" data-dismiss=\"alert\">&times;</a>Update Success!</div>"
     end

     it "should return alert-success message when use notice message" do
       stub!(:flash).and_return({:notice => "Update Success!"})
       bootstrap_flash.should == "<div class=\"alert alert-notice\"><a class=\"close\" data-dismiss=\"alert\">&times;</a>Update Success!</div>"
     end

   end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bootstrap-sass-extras-0.0.4 spec/helpers/bootstrap_flash_helper_spec.rb
bootstrap-sass-extras-0.0.3 spec/helpers/bootstrap_flash_helper_spec.rb
bootstrap-sass-extras-0.0.2 spec/helpers/bootstrap_flash_helper_spec.rb
bootstrap-sass-extras-0.0.1 spec/helpers/bootstrap_flash_helper_spec.rb