Sha256: d771d2f1c0bd182a6e26704e0907c9a99a99571c7c9f2a72eab0d10bb9dc19b1

Contents?: true

Size: 683 Bytes

Versions: 4

Compression:

Stored size: 683 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 "should display 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

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.3.1 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.3.0 spec/features/edit_contact_spec.rb
blacklight-spotlight-0.2.0 spec/features/edit_contact_spec.rb