We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9cbca2 commit 8f8fb36Copy full SHA for 8f8fb36
test/helper.rb
@@ -29,7 +29,7 @@ def create_file(path, content)
29
30
dir = File.dirname(path)
31
FileUtils.mkdir_p(dir)
32
- File.open(path, "w") {|f| f.write content }
+ File.write(path, content)
33
end
34
35
def linter_output
@@ -39,11 +39,11 @@ def linter_output
39
40
41
def file_must_exist(filename)
42
- assert File.exist?(filename),
43
- "Expected file `#{filename}' to exist."
+ assert File.exist?(filename),
+ "Expected file `#{filename}' to exist."
44
45
46
def file_wont_exist(filename)
47
- assert !File.exist?(filename),
48
- "Expected file `#{filename}' to not exist."
+ assert !File.exist?(filename),
+ "Expected file `#{filename}' to not exist."
49
0 commit comments