Kouhei Sutou
null+****@clear*****
Thu Nov 21 15:50:51 JST 2013
Kouhei Sutou 2013-11-21 15:50:51 +0900 (Thu, 21 Nov 2013) New Revision: e1c041d072569705b09c65b65a965ea5959a0228 https://github.com/droonga/drntest/commit/e1c041d072569705b09c65b65a965ea5959a0228 Message: Ensure adding newline to the bottom of actual result Modified files: lib/drntest/test-runner.rb Modified: lib/drntest/test-runner.rb (+3 -1) =================================================================== --- lib/drntest/test-runner.rb 2013-11-21 15:48:19 +0900 (e6abe68) +++ lib/drntest/test-runner.rb 2013-11-21 15:50:51 +0900 (8cb5bce) @@ -107,7 +107,9 @@ module Drntest def output_actual_result(actual_result, output_path) puts "Saving received result as #{output_path}" actual_json = JSON.pretty_generate(actual_result) - File.write(output_path, actual_json) + File.open(output_path, "w") do |file| + file.puts(actual_json) + end end def show_diff(expected, actual) -------------- next part -------------- HTML����������������������������... ダウンロード