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.4.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.3.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.2.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.1.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.3 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.rc2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.rc1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.10 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/controllers/spotlight/application_controller_spec.rb