Sha256: 064691a489da3d93e8cd833749ad726aedd97414e37675599be7729210e922d5
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' RSpec.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
5 entries across 5 versions & 1 rubygems