Sha256: c099fa9630f85ae57d23494180fcce789e55bc81d5ac8d5a13e8be1c4d79583d

Contents?: true

Size: 227 Bytes

Versions: 2

Compression:

Stored size: 227 Bytes

Contents

require 'spec_helper'

describe HashDiff do
  it "should be able to decode property path" do
    decoded = HashDiff.send(:decode_property_path, "a.b[0].c.city[5]")
    decoded.should == ['a', 'b', 0, 'c', 'city', 5]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hashdiff-0.0.3 spec/hashdiff/util_spec.rb
hashdiff-0.0.2 spec/hashdiff/util_spec.rb