Sha256: b4c22933c235adfcd0f4596a19c6a602ecf979a3415365469588cd402ae42f05
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'action_view' require 'active_support' require_relative '../../../app/helpers/railsstrap/glyph_helper' include ActionView::Helpers include ActionView::Context include Railsstrap::GlyphHelper describe Railsstrap::GlyphHelper, :type => :helper do it "should return a basic railsstrap glyph" do expect(glyph(:thumbs_up).gsub(/\s/, '').downcase) .to eql(BASIC_GLYPH.gsub(/\s/, '').downcase) end it "should return a railsstrap glyph with span" do expect(glyph(:thumbs_up, {:tag => :span}).gsub(/\s/, '').downcase) .to eql(GLYPH_WITH_SPAN.gsub(/\s/, '').downcase) end end BASIC_GLYPH = %{<iclass=\"glyphiconglyphicon-thumbs-up\"></i>} GLYPH_WITH_SPAN = %{<spanclass=\"glyphiconglyphicon-thumbs-up\"></span>}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railsstrap-3.3.4 | spec/lib/railsstrap/glyph_helper_spec.rb |
railsstrap-3.3.2 | spec/lib/railsstrap/glyph_helper_spec.rb |