Sha256: add4d7dcfdaac915d4f86c55555664fb416b98f732f84ece0ed88366adb45dd9
Contents?: true
Size: 574 Bytes
Versions: 6
Compression:
Stored size: 574 Bytes
Contents
require 'spec_helper' describe FacetsHelper do let(:blacklight_config) { Blacklight::Configuration.new } before(:each) do helper.stub(:blacklight_config).and_return blacklight_config end describe "render_selected_facet_value" do it "should be html_safe and not have the remove link" do item = stub("item", :value=>'two', :hits=>9) ret_val = helper.render_selected_facet_value("one", item) ret_val.should == "<span class=\"selected\">two <span class=\"count\">(9)</span></span>" ret_val.should be_html_safe end end end
Version data entries
6 entries across 6 versions & 1 rubygems