spec/views/users/show.html.erb_spec.rb in sufia-6.0.0.rc4 vs spec/views/users/show.html.erb_spec.rb in sufia-6.0.0
- old
+ new
@@ -29,10 +29,10 @@
expect(rendered).to match /Joined on #{join_date.strftime("%b %d, %Y")}/
end
context "with trophy" do
- let(:generic_file) { GenericFile.new(title: ["Fake object"], id: "abc123") }
+ let(:generic_file) { stub_model(GenericFile, title: ["Fake object"], id: "abc123") }
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)
assign(:trophies, [generic_file])