Sha256: 6f7771cd27dd52ceeeb7ab290b43d7ef45a94d508a407bf41a9c23a6c3c87c30
Contents?: true
Size: 1 KB
Versions: 7
Compression:
Stored size: 1 KB
Contents
require 'spec_helper' describe "catalog/openseadragon_default" do let(:document) { SolrDocument.new } let(:blacklight_config) { Blacklight::Configuration.new } let(:p) { "catalog/openseadragon_default" } let(:view_config) do Blacklight::Configuration::ViewConfig.new(document_component: Blacklight::Gallery::OpenseadragonSolrDocument) end before do allow(document).to receive_messages(to_openseadragon: []) allow(view).to receive_messages( blacklight_config: blacklight_config, documents: [document], document_index_view_type: 'embed', openseadragon_picture_tag: '<img />' ) end it "should render the openseadragon container" do render partial: p, locals: { document: document } expect(rendered).to have_selector ".openseadragon-container" end it "should support passing a container class" do render partial: p, locals: { document: document, osd_container_class: "custom-container" } expect(rendered).to have_selector ".custom-container" end end
Version data entries
7 entries across 7 versions & 1 rubygems