diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-21 11:11:48 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-21 11:11:48 -0700 |
commit | 75159207c2349447e4de65a529f3187f3354cf1f (patch) | |
tree | f85ef34bac7198804681aece209288c94e3663cf /test | |
parent | 4e0e8dad05383f2eb210e246c8f2676f158be2cf (diff) | |
download | psych-75159207c2349447e4de65a529f3187f3354cf1f.zip |
avoid ruby warnings
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_nil.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/test_nil.rb b/test/psych/test_nil.rb index f3d9c5e..4f32b77 100644 --- a/test/psych/test_nil.rb +++ b/test/psych/test_nil.rb @@ -4,8 +4,8 @@ module Psych class TestNil < TestCase def test_nil yml = Psych.dump nil - assert_match /--- \n(?:\.\.\.\n)?/, yml - assert_equal nil, Psych.load(yml) + assert_match(/--- \n(?:\.\.\.\n)?/, yml) + assert_nil Psych.load(yml) end def test_array_nil |