Sha256: e6fea2a95fd481cd476988aadb890540288488c4de5ff463d59d877947db0f33

Contents?: true

Size: 572 Bytes

Versions: 10

Compression:

Stored size: 572 Bytes

Contents

require 'spec_helper'

describe MarkLogic::DatabaseSettings::RangeFieldIndex do
  let(:index) do
    MarkLogic::DatabaseSettings::RangeFieldIndex.new("field")
  end

  describe "new" do
    it "should populate correctly" do
      expect(index.to_json).to eq(
        {
          "range-field-index" => {
            "scalar-type" => "string",
            "field-name" => "field",
            "collation" => MarkLogic::DEFAULT_COLLATION,
            "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_field_index_spec.rb
marklogic-0.0.10 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.9 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.8 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.7 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.6 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.5 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.4 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.3 spec/marklogic/database_settings/range_field_index_spec.rb
marklogic-0.0.1 spec/marklogic/database_settings/range_field_index_spec.rb