test/hashr_test.rb in hashr-0.0.17 vs test/hashr_test.rb in hashr-0.0.18

- old
+ new

@@ -196,7 +196,13 @@ assert hash.instance_of?(Hash) assert hash[:foo].instance_of?(Hash) assert hash[:foo][:bar].instance_of?(Hash) end + + test 'set sets a dot separated path to nested hashes' do + hashr = Hashr.new(:foo => { :bar => 'bar' }) + hashr.set('foo.baz', 'baz') + assert_equal 'baz', hashr.foo.baz + end end