Use `assert_nil`

This commit is contained in:
Pat Hawks 2017-01-05 17:08:04 -06:00
parent 7cded91a7c
commit 4b51c1da58
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class TestFrontMatterDefaults < JekyllUnitTest
should "affect only the specified path and type" do
assert_equal @affected.data["key"], "val"
assert_equal @not_affected.data["key"], nil
assert_nil @not_affected.data["key"]
end
end
@ -45,7 +45,7 @@ class TestFrontMatterDefaults < JekyllUnitTest
should "affect only the specified path" do
assert_equal @affected.data["key"], "val"
assert_equal @not_affected.data["key"], nil
assert_nil @not_affected.data["key"]
end
end
@ -69,7 +69,7 @@ class TestFrontMatterDefaults < JekyllUnitTest
should "affect only the specified path and all types" do
assert_equal @affected.data["key"], "val"
assert_equal @not_affected.data["key"], nil
assert_nil @not_affected.data["key"]
end
end