test/skip_getter_test.rb in disposable-0.1.4 vs test/skip_getter_test.rb in disposable-0.1.5

- old
+ new

@@ -31,9 +31,16 @@ twin.sync # does NOT call getter. album.title.must_equal "Wild Frontier" album.artist.name.must_equal "Gary Moore" + + # nested hash. + nested_hash = nil + twin.sync do |hash| + nested_hash = hash + end + nested_hash.must_equal({"title"=>"Wild Frontier", "artist"=>{"name"=>"Gary Moore"}}) end end class SkipSetterTest < MiniTest::Spec \ No newline at end of file