Sha256: afbd97b9b0e020c731fac5e0084d0b213c17eafd66c353677306c75c9d1b56c3
Contents?: true
Size: 748 Bytes
Versions: 9
Compression:
Stored size: 748 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') allow(view).to receive(:contact_images_path).and_return('/contact_images') assign(:contact, contact) assign(:exhibit, exhibit) allow(view).to receive(:current_exhibit).and_return(exhibit) end it 'has an IIIF crop' do render expect(rendered).to have_content 'Upload an image' expect(rendered).to have_selector '#contact_avatar_attributes_iiif_cropper' end end
Version data entries
9 entries across 9 versions & 1 rubygems