Sha256: 60e30455e836876b478e79af899fb75f57108e3c78e93b7af72de26889a6759d
Contents?: true
Size: 567 Bytes
Versions: 4
Compression:
Stored size: 567 Bytes
Contents
require 'spec_helper' describe "spotlight/browse/index", :type => :view do let(:search) { FactoryGirl.create(:search) } let(:another_search) { FactoryGirl.create(:search) } it "should have a title" do render expect(response).to have_selector 'h1', text: "Browse Exhibit" end it "should render the collection of searches" do assign :searches, [search, another_search] stub_template "spotlight/browse/_search.html.erb" => "<%= search.id %> <br/>" render expect(response).to have_content "#{search.id} #{another_search.id}" end end
Version data entries
4 entries across 4 versions & 1 rubygems