Sha256: e7053ad23a0418b519f7c22933cc00a4e36f8ce873374b21ea10d31524208eac

Contents?: true

Size: 662 Bytes

Versions: 33

Compression:

Stored size: 662 Bytes

Contents

describe 'Add a contact to an exhibit', type: :feature do
  let(:curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) }
  let(:exhibit) { FactoryGirl.create(:exhibit) }
  let!(:about_page) { FactoryGirl.create(:about_page, exhibit: exhibit) }
  let!(:contact) { FactoryGirl.create(:contact, name: 'Marcus Aurelius', exhibit: exhibit) }
  before { login_as curator }
  it 'displays a newly added contact in the sidebar' do
    visit spotlight.exhibit_about_pages_path(exhibit)

    within '.contacts_admin' do
      click_link 'Edit'
    end

    click_button 'Save'
    expect(page).to have_content 'The contact was successfully updated.'
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.0.0.alpha2 spec/features/edit_contact_spec.rb
blacklight-spotlight-1.0.0.alpha1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.34.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.34.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.33.3 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.33.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.33.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.33.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.32.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.31.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.30.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.29.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.29.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.28.3 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.28.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.28.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.28.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.27.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.26.1 spec/features/edit_contact_spec.rb