Sha256: b289f841e86724d584815fd7e4f3bb5e9ff17eda9c518e1335a2d845537f9e7a

Contents?: true

Size: 594 Bytes

Versions: 10

Compression:

Stored size: 594 Bytes

Contents

require 'spec_helper'

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

  describe "new" do
    it "should populate correctly" do
      expect(index.to_json).to eq(
        {
          "geospatial-path-index" => {
            "path-expression" => "/path/to/stuff",
            "coordinate-system" => "wgs84",
            "point-format" => "point",
            "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/geospatial_path_index_spec.rb
marklogic-0.0.10 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.9 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.8 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.7 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.6 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.5 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.4 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.3 spec/marklogic/database_settings/geospatial_path_index_spec.rb
marklogic-0.0.1 spec/marklogic/database_settings/geospatial_path_index_spec.rb