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

Version Path
blacklight-spotlight-0.18.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.17.1 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.17.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.16.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.15.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.14.2 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.14.1 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.14.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.13.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.12.1 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.12.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.11.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.10.3 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.10.2 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.10.1 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.10.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.9.2 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.9.1 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.9.0 spec/helpers/spotlight/browse_helper_spec.rb
blacklight-spotlight-0.8.2 spec/helpers/spotlight/browse_helper_spec.rb