Sha256: 1d47829b217f02878aad09254486f0d281ccebbb9203f1bdd366d224036bdbeb

Contents?: true

Size: 427 Bytes

Versions: 10

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'

describe MarkLogic::Queries::AndNotQuery do

  describe "#to_xqy" do
    it "should create xquery correctly" do
      q = MarkLogic::Queries::AndNotQuery.new(
        MarkLogic::Queries::DirectoryQuery.new("/foo/"),
        MarkLogic::Queries::CollectionQuery.new("bar"))
      expect(q.to_xqy).to eq(%Q{cts:and-not-query(cts:directory-query(("/foo/")),cts:collection-query(("bar")))})
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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