Sha256: 0ec26f433c88c45a9ff13a5a8c5d6e414ae5f62b06b75f71a5aec52bf9520e47
Contents?: true
Size: 867 Bytes
Versions: 7
Compression:
Stored size: 867 Bytes
Contents
require 'spec_helper' # spec for sidebar partial in catalog show view describe "/catalog/_show_sidebar.html.erb" do before(:each) do allow(view).to receive(:blacklight_config).and_return(CatalogController.blacklight_config) allow(view).to receive(:has_user_authentication_provider?).and_return(false) allow(view).to receive(:current_search_session).and_return nil allow(view).to receive(: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' allow(@document).to receive(: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
7 entries across 7 versions & 1 rubygems