Sha256: a469e9e84bda65f19eda0679bf63a284858795d0b01e9b66d473ca3608cb9681

Contents?: true

Size: 711 Bytes

Versions: 17

Compression:

Stored size: 711 Bytes

Contents

require "spec_helper"

module Refinery
  describe TagHelper do

    describe "#refinery_help_tag" do
      it "makes title html_safe if it's not already" do
        helper.refinery_help_tag("<br /> ugisozols").should =~ /&lt;br \/&gt; ugisozols/
      end
    end

    describe "#refinery_icon_tag" do
      it "appends .png to filename if specified string has no dots in it" do
        helper.refinery_icon_tag("ugisozols").should =~ /ugisozols\.png/
      end

      it "wraps image_tag with some options preset" do
        helper.refinery_icon_tag("ugis.ozols.jpg").should eq("<img alt=\"Ugis.ozols\" height=\"16\" src=\"/assets/refinery/icons/ugis.ozols.jpg\" width=\"16\" />")
      end
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
refinerycms-core-2.1.5 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.1.4 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.1.3 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.1.2 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.1.1 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.1.0 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.10 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.9 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.8 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.7 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.6 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.5 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.4 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.3 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.2 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.1 spec/helpers/refinery/tag_helper_spec.rb
refinerycms-core-2.0.0 spec/helpers/refinery/tag_helper_spec.rb