Sha256: c447bd3c5bca0c1da73573bce6374db756ee7a9db1c461bd36c5e96ea2ca618c
Contents?: true
Size: 698 Bytes
Versions: 29
Compression:
Stored size: 698 Bytes
Contents
describe 'spotlight/tags/index.html.erb', type: :view do let(:exhibit) { FactoryGirl.create(:exhibit) } let!(:tag1) { FactoryGirl.create(:tagging, tagger: exhibit) } let!(:tag2) { FactoryGirl.create(:tagging, tagger: exhibit) } before do assign(:exhibit, exhibit) assign(:tags, exhibit.owned_tags) allow(view).to receive_messages(exhibit_tag_path: '/tags') allow(view).to receive(:current_exhibit).and_return(exhibit) allow(view).to receive(:url_to_tag_facet, &:first) end describe 'Tags' do it 'is displayed' do render [tag1.tag.name, tag2.tag.name].each do |name| expect(rendered).to have_css('td', text: name) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems