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\">×</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\">×</a>Update Success!</div>" end end end
Version data entries
4 entries across 4 versions & 1 rubygems