Sha256: 216eed51cf4d7516ba57524948d1062afc1abd71b86daf3ca75829cf0a17f4d9

Contents?: true

Size: 592 Bytes

Versions: 10

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'

describe MarkLogic::DatabaseSettings::RangePathIndex do
  let(:index) do
    MarkLogic::DatabaseSettings::RangePathIndex.new("/path/to/stuff")
  end

  describe "new" do
    it "should populate correctly" do
      expect(index.to_json).to eq(
        {
          "range-path-index" => {
            "scalar-type" => "string",
            "collation" => MarkLogic::DEFAULT_COLLATION,
            "path-expression" => "/path/to/stuff",
            "range-value-positions" => false,
            "invalid-values" => "reject"
          }
        }
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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