Sha256: c351f80ce31e4d7cb297f5bd5f7150c379285ea9c87ec1c11eb4f33db325e731

Contents?: true

Size: 414 Bytes

Versions: 18

Compression:

Stored size: 414 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

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-3.0.0.alpha.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.13.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.12.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.12.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.11.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.10.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.9.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.8.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.7.2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.7.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.7.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.6.1.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.6.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.6.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.5.2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.5.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-2.5.0 spec/controllers/spotlight/application_controller_spec.rb