Sha256: f4e3721c94f6a15557710624a2c522b3659fc69e21ce2c45d004e18ff44ff2ec

Contents?: true

Size: 406 Bytes

Versions: 26

Compression:

Stored size: 406 Bytes

Contents

require 'spec_helper'

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 exhibit_catalog_index_url(exhibit, q: 'query')
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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