Sha256: 278ece9f45aa20283c70637f817fd3c06e114a167a0a82f2b6bd46a15648b34f

Contents?: true

Size: 392 Bytes

Versions: 10

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'

describe MarkLogic::Queries::ContainerQuery do

  describe "#to_xqy" do
    it "should create xquery correctly" do
      q = MarkLogic::Queries::ContainerQuery.new("foo", MarkLogic::Queries::ValueQuery.new("bar", "baz"))
      expect(q.to_xqy).to eq(%Q{cts:json-property-scope-query("foo",cts:json-property-value-query("bar",("baz"),("exact"),1.0))})
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
marklogic-0.0.11 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.10 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.9 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.8 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.7 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.6 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.5 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.4 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.3 spec/marklogic/queries/container_query_spec.rb
marklogic-0.0.1 spec/marklogic/queries/container_query_spec.rb