1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/test/unit.rb (Test::Unit::Runner::Worker#run): use

File.basename with suffix instead of gsub.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2012-01-02 06:08:29 +00:00
parent 3c969a7c10
commit 38cee6b43e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Jan 2 15:05:09 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* lib/test/unit.rb (Test::Unit::Runner::Worker#run): use
File.basename with suffix instead of gsub.
Mon Jan 2 14:55:28 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find may

View file

@ -266,7 +266,7 @@ module Test
end
def run(task,type)
@file = File.basename(task).gsub(/\.rb/,"")
@file = File.basename(task, ".rb")
@real_file = task
begin
puts "loadpath #{[Marshal.dump($:-@loadpath)].pack("m").gsub("\n","")}"