Skip to content

Commit

Permalink
Removing 'no content' as the test file is now created with content
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaaank committed Oct 27, 2021
1 parent cd655e0 commit a4ce18d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.amshove.kluent.tests.assertions.file
import java.io.File

/**
* Constructs a directory or a plain file with no content and deletes it after the body has run
* Constructs a directory or a plain file with text content and deletes it after the body has run
*/
fun File.useFile(isDir: Boolean = false, body: (file: File) -> Unit) = try {
if (isDir) this.mkdir() else this.writeText("quick brown fox over a lazy dog")
Expand Down

0 comments on commit a4ce18d

Please sign in to comment.