Skip to content

Commit 8f8fb36

Browse files
committed
Fix code style
1 parent d9cbca2 commit 8f8fb36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/helper.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def create_file(path, content)
2929

3030
dir = File.dirname(path)
3131
FileUtils.mkdir_p(dir)
32-
File.open(path, "w") {|f| f.write content }
32+
File.write(path, content)
3333
end
3434

3535
def linter_output
@@ -39,11 +39,11 @@ def linter_output
3939
end
4040

4141
def file_must_exist(filename)
42-
assert File.exist?(filename),
43-
"Expected file `#{filename}' to exist."
42+
assert File.exist?(filename),
43+
"Expected file `#{filename}' to exist."
4444
end
4545

4646
def file_wont_exist(filename)
47-
assert !File.exist?(filename),
48-
"Expected file `#{filename}' to not exist."
47+
assert !File.exist?(filename),
48+
"Expected file `#{filename}' to not exist."
4949
end

0 commit comments

Comments
 (0)