summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/test_nil.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/test_nil.rb b/test/psych/test_nil.rb
index f3d9c5e8d8..4f32b7703b 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