Sha256: 6807bcbc92f044521818b63d6b86b3d7be2ab53038460459cb7d2339286e8842
Contents?: true
Size: 498 Bytes
Versions: 27
Compression:
Stored size: 498 Bytes
Contents
require 'spec_helper' describe Spotlight::BrowseHelper, type: :helper do it 'defaults to the gallery' do allow(helper).to receive_messages(blacklight_config: double(view: { gallery: true })) expect(helper.default_document_index_view_type).to eq :gallery end it "uses the blacklight default if gallery isn't available" do allow(helper).to receive_messages(blacklight_config: double(view: { list: true })) expect(helper.default_document_index_view_type).to eq :list end end
Version data entries
27 entries across 27 versions & 1 rubygems