Fix RuboCop offenses in tests
This commit is contained in:
		
							parent
							
								
									dc5e39fad9
								
							
						
					
					
						commit
						2568aea6ea
					
				|  | @ -39,7 +39,7 @@ class TestDocument < JekyllUnitTest | |||
|     end | ||||
| 
 | ||||
|     should "exist" do | ||||
|       refute @document.nil? | ||||
|       refute_nil @document | ||||
|     end | ||||
| 
 | ||||
|     should "know its relative path" do | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue