summaryrefslogtreecommitdiff
path: root/test/psych/test_exception.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-27 19:14:53 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-03-27 19:14:53 -0700
commit5f1a7543e7bcde61323cd02fb3a82ceda733d051 (patch)
treecb7ddf55ce1991aa7600f50cfcc2ec15fc0b3ac4 /test/psych/test_exception.rb
parent47c4176ce9a349bac0417ebada7690babf79b2a5 (diff)
downloadpsych-5f1a7543e7bcde61323cd02fb3a82ceda733d051.zip
removed the to_yaml method
Diffstat (limited to 'test/psych/test_exception.rb')
-rw-r--r--test/psych/test_exception.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/psych/test_exception.rb b/test/psych/test_exception.rb
index efc5747..dd06168 100644
--- a/test/psych/test_exception.rb
+++ b/test/psych/test_exception.rb
@@ -16,15 +16,8 @@ module Psych
@wups = Wups.new
end
- def test_to_yaml
- w = Psych.load(@wups.to_yaml)
- assert_equal @wups, w
- assert_equal 1, w.foo
- assert_equal 2, w.bar
- end
-
- def test_dump
- w = Psych.load(@wups.to_yaml)
+ def test_convert
+ w = Psych.load(Psych.dump(@wups))
assert_equal @wups, w
assert_equal 1, w.foo
assert_equal 2, w.bar