Fix RuboCop offenses in tests

This commit is contained in:
Ashwin Maroli 2021-08-18 15:21:08 +05:30
parent dc5e39fad9
commit 2568aea6ea
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class TestDocument < JekyllUnitTest
end
should "exist" do
refute @document.nil?
refute_nil @document
end
should "know its relative path" do

View File

@ -130,7 +130,7 @@ class TestUtils < JekyllUnitTest
context "The \`Utils.slugify\` method" do
should "return nil if passed nil" do
assert Utils.slugify(nil).nil?
assert_nil Utils.slugify(nil)
rescue NoMethodError
assert false, "Threw NoMethodError"
end