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 =~ /<br \/> 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