Sha256: c995478cab7000cfb1b8571a31f158713397d7fff7174ce2cefac7f648b2ad8a
Contents?: true
Size: 993 Bytes
Versions: 3
Compression:
Stored size: 993 Bytes
Contents
require 'spec_helper' describe "Add tags to an item in an exhibit", :type => :feature do let(:exhibit) { FactoryGirl.create(:exhibit) } let(:curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } let(:custom_field) { FactoryGirl.create(:custom_field, exhibit: exhibit) } before do login_as(curator) end it "should change and display the of tags" do visit spotlight.exhibit_catalog_path(exhibit, "dq287tq6352") expect(page).to have_link "Edit" click_on "Edit" fill_in "Tags", with: "One, Two and a half, Three" click_on "Save changes" visit spotlight.exhibit_catalog_path(exhibit, "dq287tq6352") within("ul.tags") do expect(page).to have_selector "li", text: "One" expect(page).to have_selector "li", text: "Two and a half" expect(page).to have_selector "li", text: "Three" end click_on "Two and a half" expect(page).to have_content "Remove constraint Exhibit Tags: Two and a half" end end
Version data entries
3 entries across 3 versions & 1 rubygems