Sha256: d885e74022ae02995798ff8652e292eaff9dc87f25e6bd4f65fa8d237d3f7c44

Contents?: true

Size: 708 Bytes

Versions: 28

Compression:

Stored size: 708 Bytes

Contents

require 'spec_helper'

describe 'spotlight/contacts/edit.html.erb' do
  let(:exhibit) { FactoryGirl.create(:exhibit) }

  let(:contact) do
    Spotlight::Contact.new exhibit: exhibit
  end

  before do
    allow(view).to receive(:exhibit_contacts_path).and_return('/exhibit/1/contacts')
    allow(view).to receive(:exhibit_about_pages_path).and_return('/exhibit/admin/about')
    assign(:contact, contact)
    assign(:exhibit, exhibit)
    allow(view).to receive(:current_exhibit).and_return(exhibit)
  end

  it 'has a photo field' do
    render
    expect(rendered).to have_content 'Photo'
  end

  it 'has a cropbox' do
    render
    expect(rendered).to have_selector '#contact_avatar_cropbox'
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
blacklight-spotlight-0.19.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.18.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.17.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.17.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.16.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.15.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.14.2 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.14.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.14.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.13.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.12.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.12.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.11.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.10.3 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.10.2 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.10.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.10.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.9.2 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.9.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.9.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb