Skip to content

Commit

Permalink
Fix minitest runner tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jan 3, 2018
1 parent 7f1e5a9 commit 5208784
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/minitest_runner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,17 @@ def test_with_testopts
def assert_runner_for(env, *args)
assert_equal true, system(
env.merge("RUBYOPT" => "-rsimplecov"),
"bin/minitest",
*binstub,
*args,
out: File::NULL
)
end

def binstub
cmd = "bin/minitest"
return [cmd] unless windows?

%W[#{RbConfig.ruby} #{cmd}]
end
end
end

0 comments on commit 5208784

Please sign in to comment.