Sha256: e756b67b33a581cef09d2e68b18ed1aa23e5f5ca7d23e3558e7bf9731248ee28
Contents?: true
Size: 747 Bytes
Versions: 11
Compression:
Stored size: 747 Bytes
Contents
require "spec_helper" module Refinery describe TagHelper, :type => :helper do describe "#refinery_help_tag" do it "makes title html_safe if it's not already" do expect(helper.refinery_help_tag("<br /> ugisozols")).to match(/<br \/> ugisozols/) end end describe "#refinery_icon_tag" do it "appends .png to filename if specified string has no dots in it" do expect(helper.refinery_icon_tag("ugisozols")).to match(/ugisozols\.png/) end it "wraps image_tag with some options preset" do expect(helper.refinery_icon_tag("ugis.ozols.jpg")).to xml_eq(%Q{<img alt="Ugis.ozols" height="16" src="/images/refinery/icons/ugis.ozols.jpg" width="16" />}) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems