summaryrefslogtreecommitdiff
path: root/test/psych/visitors
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-03 12:53:22 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-03 12:53:22 +0900
commit25a7b47d2a2e36ecb80beb797a9056fb1313ae40 (patch)
treed48658ea252787eb4c59bc67b5da727cd43f00df /test/psych/visitors
parente6a533eed532bbf9bf3fc01cf5fef216dd9114b6 (diff)
downloadpsych-25a7b47d2a2e36ecb80beb797a9056fb1313ae40.zip
use assert_nil when nil assertion
Diffstat (limited to 'test/psych/visitors')
-rw-r--r--test/psych/visitors/test_yaml_tree.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb
index 5755f58..ea38f6d 100644
--- a/test/psych/visitors/test_yaml_tree.rb
+++ b/test/psych/visitors/test_yaml_tree.rb
@@ -165,10 +165,10 @@ module Psych
# http://yaml.org/type/null.html
def test_nil
assert_cycle nil
- assert_equal nil, Psych.load('null')
- assert_equal nil, Psych.load('Null')
- assert_equal nil, Psych.load('NULL')
- assert_equal nil, Psych.load('~')
+ assert_nil Psych.load('null')
+ assert_nil Psych.load('Null')
+ assert_nil Psych.load('NULL')
+ assert_nil Psych.load('~')
assert_equal({'foo' => nil}, Psych.load('foo: '))
assert_cycle 'null'