Sha256: 71d0806050ba1ae680bf1195061ca1b9bed58c077d8cf87b87d579e96b3f68af

Contents?: true

Size: 415 Bytes

Versions: 22

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

describe Spotlight::ApplicationController, type: :controller do
  routes { Spotlight::Engine.routes }
  let(:exhibit) { FactoryBot.create(:exhibit) }

  it 'provides a search_action_url override' do
    allow(controller).to receive_messages(current_exhibit: exhibit)
    expect(controller.search_action_url(q: 'query')).to eq search_exhibit_catalog_url(exhibit, q: 'query')
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.4 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.3 spec/controllers/spotlight/application_controller_spec.rb