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

Version Path
ddr-models-3.0.0.beta.3 spec/index/query_spec.rb
ddr-models-3.0.0.beta.2 spec/index/query_spec.rb
ddr-models-2.4.0.rc2 spec/index/query_spec.rb
ddr-models-2.4.0.rc1 spec/index/query_spec.rb
ddr-models-2.3.2 spec/index/query_spec.rb
ddr-models-3.0.0.beta.1 spec/index/query_spec.rb
ddr-models-2.3.1 spec/index/query_spec.rb
ddr-models-3.0.0.alpha.4 spec/index/query_spec.rb
ddr-models-3.0.0.alpha.3 spec/index/query_spec.rb
ddr-models-2.3.0 spec/index/query_spec.rb
ddr-models-3.0.0.alpha.2 spec/index/query_spec.rb
ddr-models-3.0.0.alpha.1 spec/index/query_spec.rb
ddr-models-2.2.0 spec/index/query_spec.rb
ddr-models-2.1.3 spec/index/query_spec.rb
ddr-models-2.1.2 spec/index/query_spec.rb
ddr-models-2.1.1 spec/index/query_spec.rb
ddr-models-2.1.0 spec/index/query_spec.rb
ddr-models-2.1.0.rc2 spec/index/query_spec.rb
ddr-models-2.1.0.rc1 spec/index/query_spec.rb