spec/models/blacklight/solr/request_spec.rb in blacklight-7.0.0.rc1 vs spec/models/blacklight/solr/request_spec.rb in blacklight-7.0.0.rc2

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -RSpec.describe Blacklight::Solr::Request do +RSpec.describe Blacklight::Solr::Request, api: true do before do subject[:qt] = 'hey' subject[:fq] = ["what's up.", "dood"] subject['q'] = "what's" subject[:wt] = "going" @@ -13,25 +13,24 @@ subject['group'] = "I" subject['defType'] = "had" subject['spellcheck'] = "a" subject['spellcheck.q'] = "fleece" subject['f.title_facet.facet.limit'] = "vest" - subject['facet.field'] = [] + 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 + it "accepts 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