Sha256: d3a40af1f0f2c229017fb035d6828d2f975d61aaf8a24c2e854f1832b3f06eed
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
require 'spec_helper' describe JsonSchemaSpec::Util do describe "#deep_merge" do it "handles arrays appropriately" do result = JsonSchemaSpec::Util.deep_merge( { :a => [ { :b => 1, :d => 3 } ], :a2 => true }, { :a => [ { :c => 2, :e => 4 } ] } ) expect(result).to eq(:a => [ { :b => 1, :c => 2, :d => 3, :e => 4 } ], :a2 => true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_schema_spec-0.0.5 | spec/json_schema_spec/util_spec.rb |