Permalink
Browse files

Use `assert_nil`

  • Loading branch information...
1 parent 7cded91 commit 4b51c1da587051a8a222a103d9fd196285d4d89d @pathawks pathawks committed Jan 5, 2017
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/test_front_matter_defaults.rb
@@ -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

0 comments on commit 4b51c1d

Please sign in to comment.