Sha256: 82f9e9c7d3cba408fe005498534b21c0ff1b815fccf28d01000fa2bf19bf0efb
Contents?: true
Size: 925 Bytes
Versions: 4
Compression:
Stored size: 925 Bytes
Contents
require "spec_helper" describe "Tags Administration", :type => :feature do let(:exhibit) { FactoryGirl.create(:exhibit) } let!(:tagging) { FactoryGirl.create(:tagging, tagger: exhibit) } let(:exhibit_curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } before { login_as exhibit_curator } describe "index" do it "should have tags" do visit spotlight.exhibit_tags_path(exhibit) expect(page).to have_css("td", text: tagging.tag.name) end it "should link tags to a search" do visit spotlight.exhibit_tags_path(exhibit) click_on tagging.tag.name expect(page).to have_content "Remove constraint Exhibit Tags: #{tagging.tag.name}" end end describe "destroy" do it "should destroy a tag" do visit spotlight.exhibit_tags_path(exhibit) click_link "Delete" expect(page).not_to have_css("td", text: tagging.tag.name) end end end
Version data entries
4 entries across 4 versions & 1 rubygems