Sha256: eb1ef5585ee11f9fa701b91caf120641b233aee1d915f0902777ccdd63ec73ca
Contents?: true
Size: 865 Bytes
Versions: 38
Compression:
Stored size: 865 Bytes
Contents
describe 'spotlight/resources/_external_resources_form.html.erb', type: :view do let(:blacklight_config) { Blacklight::Configuration.new } let(:exhibit) { stub_model(Spotlight::Exhibit) } before do allow(view).to receive_messages(blacklight_config: blacklight_config) allow(view).to receive(:current_exhibit).and_return(exhibit) allow(view).to receive_messages(current_page?: true) end it 'renders the configured partials' do allow(Spotlight::Engine.config).to receive(:external_resources_partials).and_return(%w(a b c)) stub_template '_a.html.erb' => 'a_template' stub_template '_b.html.erb' => 'b_template' stub_template '_c.html.erb' => 'c_template' render expect(rendered).to have_content 'a_template' expect(rendered).to have_content 'b_template' expect(rendered).to have_content 'c_template' end end
Version data entries
38 entries across 38 versions & 1 rubygems