Sha256: 869c24f196df57886a950b81f4af3490ee39f3bfd9e2a93a7dc8fca60cc48ab7

Contents?: true

Size: 384 Bytes

Versions: 33

Compression:

Stored size: 384 Bytes

Contents

describe Spotlight::ApplicationController, type: :controller do
  routes { Spotlight::Engine.routes }
  let(:exhibit) { FactoryGirl.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

33 entries across 33 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-1.0.0.alpha2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-1.0.0.alpha1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.34.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.34.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.33.3 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.33.2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.33.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.33.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.32.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.31.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.30.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.29.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.29.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.28.3 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.28.2 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.28.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.28.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.27.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.26.1 spec/controllers/spotlight/application_controller_spec.rb