Sha256: 390d9061c0e4ead9e2cfcb4d863aab01c9f24e253c53df6d57f486ae0f686496

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

require 'spec_helper'

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

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.3.1 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.3.0 spec/controllers/spotlight/application_controller_spec.rb
blacklight-spotlight-0.2.0 spec/controllers/spotlight/application_controller_spec.rb