Sha256: 86471c58bf0924ac0f7c0a42f6bc018170df39a09461801d7c51f01c59b5f639
Contents?: true
Size: 572 Bytes
Versions: 34
Compression:
Stored size: 572 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
34 entries across 34 versions & 1 rubygems