Sha256: 6270a81f5d7cce6492057fa3ef35ed3207b2a1591393073756778a49480b560f

Contents?: true

Size: 352 Bytes

Versions: 4

Compression:

Stored size: 352 Bytes

Contents

require 'spec_helper'

describe ActionDispatch::Routing::Mapper do
  describe "#spotlight_root" do
    subject { ActionDispatch::Routing::Mapper.new(ActionDispatch::Routing::RouteSet.new) }
    it "should make the root route" do
      expect(subject).to receive(:root).with(to: "spotlight/default#index")
      subject.spotlight_root
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/lib/spotlight/routes_spec.rb
blacklight-spotlight-0.3.1 spec/lib/spotlight/routes_spec.rb
blacklight-spotlight-0.3.0 spec/lib/spotlight/routes_spec.rb
blacklight-spotlight-0.2.0 spec/lib/spotlight/routes_spec.rb