From eb44a4920f609cfaa72d55e886acf69772b08bb7 Mon Sep 17 00:00:00 2001 From: Robert Lail Date: Mon, 18 Mar 2013 19:22:54 -0500 Subject: [PATCH] extract File.join(output_path, output_file_name) to existing method --- lib/simplecov-json.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/simplecov-json.rb b/lib/simplecov-json.rb index 874be89..68e700f 100644 --- a/lib/simplecov-json.rb +++ b/lib/simplecov-json.rb @@ -22,7 +22,8 @@ class SimpleCov::Formatter::JSONFormatter covered_lines: result.covered_lines, total_lines: result.total_lines, } - File.open(File.join(output_path, output_filename), "w+") do |file| + + File.open(output_filepath, "w+") do |file| file.puts data.to_json end puts output_message(result)