Sha256: 43a58ce25b2de3802feda0756361b1b292cdf39c9753e59035f095180b6434ed
Contents?: true
Size: 1017 Bytes
Versions: 10
Compression:
Stored size: 1017 Bytes
Contents
require 'spec_helper' describe MarkLogic::DatabaseSettings::RangeElementIndex do describe "new" do it "should populate correctly" do index = MarkLogic::DatabaseSettings::RangeElementIndex.new("element") expect(index.to_json).to eq( { "scalar-type" => "string", "namespace-uri" => "", "localname" => "element", "collation" => MarkLogic::DEFAULT_COLLATION, "range-value-positions" => false, "invalid-values" => "reject" } ) end it "should populate correctly with namespace-uri" do index = MarkLogic::DatabaseSettings::RangeElementIndex.new("element", :namespace => "blah") expect(index.to_json).to eq( { "scalar-type" => "string", "namespace-uri" => "blah", "localname" => "element", "collation" => MarkLogic::DEFAULT_COLLATION, "range-value-positions" => false, "invalid-values" => "reject" } ) end end end
Version data entries
10 entries across 10 versions & 1 rubygems