Sha256: cbbf6e2b59aa65cc884463da7e5a9950f52b7e0b8bcf6d4382a0af987dff1ebe
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
require 'spec_helper' module Spotlight 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) 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", href: spotlight.import_exhibit_path(exhibit) end end end
Version data entries
3 entries across 3 versions & 1 rubygems