spec/views/users/show.html.erb_spec.rb in sufia-7.1.0 vs spec/views/users/show.html.erb_spec.rb in sufia-7.2.0
- old
+ new
@@ -27,10 +27,14 @@
expect(rendered).to match(/Joined on #{join_date.strftime("%b %d, %Y")}/)
end
context "with trophy" do
let(:trophy_presenter) { Sufia::TrophyPresenter.new(solr_document) }
- let(:solr_document) { SolrDocument.new(id: 'abc123', has_model_ssim: 'GenericWork') }
+ let(:solr_document) do
+ SolrDocument.new(id: 'abc123',
+ has_model_ssim: 'GenericWork',
+ thumbnail_path_ss: '/foo/bar.png')
+ end
before do
allow(view).to receive(:search_session).and_return({})
allow(view).to receive(:blacklight_config).and_return(CatalogController.blacklight_config)
allow(view).to receive(:current_search_session).and_return(nil)