Sha256: 8d33de6988f5afb09e1f33f96fe48ac76da0e65450c2f6c3d60ec9e0a8586c89
Contents?: true
Size: 606 Bytes
Versions: 36
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true describe Blacklight::Base do let(:controller) { (Class.new(ApplicationController) { include Blacklight::Base }).new } subject { controller} describe "#search_state" do let(:raw_params) { HashWithIndifferentAccess.new a: 1 } let(:params) { ActionController::Parameters.new raw_params } 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 eq raw_params end end end
Version data entries
36 entries across 36 versions & 1 rubygems