diff options
author | Ryan Davis <ryand@zenspider.com> | 2019-12-29 17:49:21 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2019-12-29 17:49:21 -0800 |
commit | 02bea63b7a3acd47f77a13a2a0b2826394319ddd (patch) | |
tree | 309144d8ed2d528c78fda6dc9fcedb5ac7d47f85 /lib | |
parent | b49def9a1f95e88b864107bb32442e55e615cda6 (diff) | |
download | hoe-02bea63b7a3acd47f77a13a2a0b2826394319ddd.tar.gz |
- Fixed shadowed variable and json output for minitest's test:isolated task.
[git-p4: depot-paths = "//src/hoe/dev/": change = 12485]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/minitest/test_task.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/minitest/test_task.rb b/lib/minitest/test_task.rb index 5087011..5ead3da 100644 --- a/lib/minitest/test_task.rb +++ b/lib/minitest/test_task.rb @@ -175,7 +175,7 @@ module Minitest # :nodoc: # 3 seems to be the magic number... (tho not by that much) bad, good, n = {}, [], (ENV.delete("K") || 3).to_i - path = ENV.delete("F") + file = ENV.delete("F") times = {} tt0 = Time.now @@ -199,10 +199,10 @@ module Minitest # :nodoc: puts "done" puts "Ran in %.2f seconds" % [ Time.now - tt0 ] - if path then + if file then require "json" - File.open path, "w" do |io| - io.write JSON.pretty_generate times + File.open file, "w" do |io| + io.puts JSON.pretty_generate times end end |