Sha256: e0701424e5a49f47bf8ecf3c656a8f2392569a550f7d37a00e08636a9d705649

Contents?: true

Size: 686 Bytes

Versions: 23

Compression:

Stored size: 686 Bytes

Contents

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

23 entries across 23 versions & 1 rubygems

Version Path
blacklight-spotlight-0.32.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.31.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.30.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.29.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.29.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.28.3 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.28.2 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.28.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.28.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.27.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.26.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.26.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.25.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.24.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.23.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.22.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.21.0 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.20.3 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.20.2 spec/views/spotlight/contacts/edit.html.erb_spec.rb
blacklight-spotlight-0.20.1 spec/views/spotlight/contacts/edit.html.erb_spec.rb