Sha256: d4fc118ab7deec820e70850cb0a16b39ce565ef36f4bba37197f8e57c4d9329b
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 Bytes
Contents
# frozen_string_literal: true RSpec.describe Blacklight::Solr::Request do before do subject[:qt] = 'hey' subject[:fq] = ["what's up.", "dood"] subject['q'] = "what's" subject[:wt] = "going" subject[:start] = "on" subject[:rows] = "Man" subject['hl'] = "I" subject['hl.fl'] = "wish" subject['group'] = "I" subject['defType'] = "had" subject['spellcheck'] = "a" subject['spellcheck.q'] = "fleece" subject['f.title_facet.facet.limit'] = "vest" subject['facet.field'] = [] end it "should accept valid parameters" do expect(subject.to_hash).to eq({"defType" => "had", "f.title_facet.facet.limit" => "vest", "fq" => ["what's up.", "dood"], "group" => "I", "hl" => "I", "hl.fl" => "wish", "q" => "what's", "qt" => "hey", "rows" => "Man", "spellcheck" => "a", "spellcheck.q" => "fleece", "start" => "on", "wt" => "going" }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-7.0.0.rc1 | spec/models/blacklight/solr/request_spec.rb |