Sha256: 34ac2b3e8b1fa415a238c210d81cac44930dc154896769f9018e91a68c55c919
Contents?: true
Size: 479 Bytes
Versions: 19
Compression:
Stored size: 479 Bytes
Contents
module Ddr::Index RSpec.describe Query do subject do QueryBuilder.build do |query| query .q("foo:bar") .where("spam"=>"eggs") .fields("id", "foo", "spam") .limit(50) end end its(:to_s) { is_expected.to eq("q=foo%3Abar&fq=%7B%21term+f%3Dspam%7Deggs&fl=id%2Cfoo%2Cspam&rows=50") } its(:params) { is_expected.to eq({q: "foo:bar", fl: "id,foo,spam", fq: ["{!term f=spam}eggs"], rows: 50}) } end end
Version data entries
19 entries across 19 versions & 1 rubygems