diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-27 19:14:53 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-27 19:14:53 -0700 |
commit | 5f1a7543e7bcde61323cd02fb3a82ceda733d051 (patch) | |
tree | cb7ddf55ce1991aa7600f50cfcc2ec15fc0b3ac4 /test/psych/test_hash.rb | |
parent | 47c4176ce9a349bac0417ebada7690babf79b2a5 (diff) | |
download | psych-5f1a7543e7bcde61323cd02fb3a82ceda733d051.zip |
removed the to_yaml method
Diffstat (limited to 'test/psych/test_hash.rb')
-rw-r--r-- | test/psych/test_hash.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb index 7b6cb82..84de492 100644 --- a/test/psych/test_hash.rb +++ b/test/psych/test_hash.rb @@ -9,15 +9,11 @@ module Psych def test_self_referential @hash['self'] = @hash - assert_equal @hash, Psych.load(Psych.dump(@hash)) + assert_cycle(@hash) end - def test_to_yaml - assert_equal @hash, Psych.load(@hash.to_yaml) - end - - def test_dump - assert_equal @hash, Psych.load(Psych.dump(@hash)) + def test_cycles + assert_cycle(@hash) end def test_ref_append |