Sha256: 49731c20c48471bcaeaa262636e5f85595a45478e0daff6462183617bba80c2e

Contents?: true

Size: 686 Bytes

Versions: 8

Compression:

Stored size: 686 Bytes

Contents

require 'spec_helper'

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

8 entries across 8 versions & 1 rubygems

Version Path
blacklight-spotlight-0.18.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.17.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.17.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.16.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.15.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.14.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.14.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.14.0 spec/features/edit_contact_spec.rb