Fix RuboCop offenses in tests
This commit is contained in:
parent
dc5e39fad9
commit
2568aea6ea
|
@ -39,7 +39,7 @@ class TestDocument < JekyllUnitTest
|
||||||
end
|
end
|
||||||
|
|
||||||
should "exist" do
|
should "exist" do
|
||||||
refute @document.nil?
|
refute_nil @document
|
||||||
end
|
end
|
||||||
|
|
||||||
should "know its relative path" do
|
should "know its relative path" do
|
||||||
|
|
|
@ -130,7 +130,7 @@ class TestUtils < JekyllUnitTest
|
||||||
|
|
||||||
context "The \`Utils.slugify\` method" do
|
context "The \`Utils.slugify\` method" do
|
||||||
should "return nil if passed nil" do
|
should "return nil if passed nil" do
|
||||||
assert Utils.slugify(nil).nil?
|
assert_nil Utils.slugify(nil)
|
||||||
rescue NoMethodError
|
rescue NoMethodError
|
||||||
assert false, "Threw NoMethodError"
|
assert false, "Threw NoMethodError"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue