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

Version Path
blacklight-spotlight-0.34.1 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.34.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.33.3 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.33.2 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.33.1 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.33.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.32.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.31.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.30.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.29.1 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.29.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.28.3 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.28.2 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.28.1 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.28.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.27.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.26.1 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.26.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.25.0 spec/views/spotlight/tags/index.html.erb_spec.rb
blacklight-spotlight-0.24.0 spec/views/spotlight/tags/index.html.erb_spec.rb