Sha256: 2b13969b547954c3062a3d83a2c84650c16f744f1f7db2e0b49ed4ccb705c3f9
Contents?: true
Size: 770 Bytes
Versions: 32
Compression:
Stored size: 770 Bytes
Contents
describe 'spotlight/exhibits/edit', type: :view do let(:exhibit) { FactoryGirl.create(:exhibit) } before do assign(:exhibit, exhibit) allow(view).to receive_messages( current_exhibit: exhibit, can?: true, import_exhibit_path: '/', get_exhibit_path: '/', exhibit_filters_path: '/' ) end it 'renders the edit page form' do render expect(rendered).to have_selector "form[action=\"#{spotlight.exhibit_path(exhibit)}\"]" expect(rendered).to have_selector '.callout.callout-danger.row' expect(rendered).to have_content 'This action is irreversible' expect(rendered).to have_link 'Export data', href: spotlight.import_exhibit_path(exhibit) expect(rendered).to have_button 'Import data' end end
Version data entries
32 entries across 32 versions & 1 rubygems