Sha256: c050cc1aa40ed3aec4e7c62f9513d11e8c15bd5b766d47dda3e5f0aaae54065a
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
require 'spec_helper' describe Blacklight::Base do let(:controller) { (Class.new(ApplicationController) { include Blacklight::Base }).new } subject { controller} describe "#search_state" do let(:params) { { a: 1 } } before { allow(controller).to receive_messages(params: params) } subject { controller.send(:search_state) } it "creates a path object" do expect(subject).to be_kind_of Blacklight::SearchState expect(subject.params).to be params end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-6.0.0.pre5 | spec/controllers/blacklight/base_spec.rb |