Sha256: 25927333fb46056411915366ca60b2a7c5a0557ca375244e530f95a9ce74ce1f
Contents?: true
Size: 802 Bytes
Versions: 5
Compression:
Stored size: 802 Bytes
Contents
require 'spec_helper' # spec for sidebar partial in catalog show view describe "/catalog/_show_sidebar.html.erb" do before(:each) do view.stub(:blacklight_config).and_return(CatalogController.blacklight_config) view.stub(:has_user_authentication_provider?).and_return(false) view.stub(:current_search_session).and_return nil view.stub(:search_session).and_return({}) end it "should show more-like-this titles in the sidebar" do @document = SolrDocument.new :id => 1, :title_s => 'abc', :format => 'default' @document.stub(:more_like_this).and_return([SolrDocument.new({ 'id' => '2', 'title_display' => 'Title of MLT Document' })]) render expect(rendered).to include_text("More Like This") expect(rendered).to include_text("Title of MLT Document") end end
Version data entries
5 entries across 5 versions & 1 rubygems