Sha256: d98dfe5add8ba9226b222135ae5b5bb102336ab88d6fa05df09a0f5a4def004d

Contents?: true

Size: 667 Bytes

Versions: 19

Compression:

Stored size: 667 Bytes

Contents

require 'spec_helper'

describe 'Add a contact to an exhibit', type: :feature do
  let(:curator) { FactoryGirl.create(:exhibit_curator) }
  let(:exhibit) { curator.roles.first.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

19 entries across 19 versions & 1 rubygems

Version Path
blacklight-spotlight-0.13.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.12.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.12.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.11.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.10.3 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.10.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.10.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.10.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.9.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.9.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.9.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.8.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.8.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.8.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.7.2 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.7.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.7.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.6.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.5.0 spec/features/edit_contact_spec.rb