Sha256: ba0da335318713bfc91c4364392eea7152fb83a94dd0e209e793da61cd552474
Contents?: true
Size: 895 Bytes
Versions: 1
Compression:
Stored size: 895 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) allow(view).to receive_messages(can?: true) allow(view).to receive_messages(import_exhibit_path: '/') allow(view).to receive_messages(get_exhibit_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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.4.1 | spec/views/spotlight/exhibits/edit.html.erb_spec.rb |