Kouhei Sutou
null+****@clear*****
Sun Mar 27 18:27:19 JST 2016
Kouhei Sutou 2016-03-27 18:27:19 +0900 (Sun, 27 Mar 2016) New Revision: a3e9a954e7dc7c99fc765e95db96fbf943487b42 https://github.com/ranguba/groonga-client-rails/commit/a3e9a954e7dc7c99fc765e95db96fbf943487b42 Message: Use :chdir Modified files: test/run-test.rb Modified: test/run-test.rb (+7 -6) =================================================================== --- test/run-test.rb 2016-03-27 18:09:54 +0900 (158d279) +++ test/run-test.rb 2016-03-27 18:27:19 +0900 (9d45c2f) @@ -44,11 +44,12 @@ else end Dir.glob("#{__dir__}/apps/*") do |test_application| - Dir.chdir(test_application) do - system(*command_line, "env") - unless system(*command_line, "bin/rake", - "test", "TESTOPTS=#{ARGV.join(' ')}") - exit(false) - end + env = {} + command_line.concat(["bin/rake", "test", "TESTOPTS=#{ARGV.join(' ')}"]) + options = { + :chdir => test_application, + } + unless system(env, *command_line, options) + exit(false) end end -------------- next part -------------- HTML����������������������������...Download