Sha256: fe8543d230f3aaabfe89aef70c64284d2e1fd31a2f9a790133e453cac20d908d

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

require 'spec_helper'

describe BadgeHelper do
  describe "#badge" do
    let(:html) { %(<span class="badge">%i</span>) }

    it "returns proper output for badge count" do
      badge(0).should == html % 0
      badge(2).should == html % 2
    end

    it "returns nil for nil badge count" do
      badge(nil).should be_nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap-sass-extras-0.0.6 spec/helpers/badge_helper_spec.rb