mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/minitest/metametameta.rb (MetaMetaMetaTestCase#assert_report):
support drive letter on Windows. yes, the original code is metameta. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
779922622b
commit
844ddfdd0d
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue May 8 11:21:27 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/minitest/metametameta.rb (MetaMetaMetaTestCase#assert_report):
|
||||||
|
support drive letter on Windows. yes, the original code is metameta.
|
||||||
|
|
||||||
Tue May 8 08:54:48 2012 Eric Hodel <drbrain@segment7.net>
|
Tue May 8 08:54:48 2012 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* lib/abbrev.rb: Fixed typo in abbrev pattern documentation. Based on
|
* lib/abbrev.rb: Fixed typo in abbrev pattern documentation. Based on
|
||||||
|
|
|
@ -26,8 +26,13 @@ class MetaMetaMetaTestCase < MiniTest::Unit::TestCase
|
||||||
output = @output.string.dup
|
output = @output.string.dup
|
||||||
output.sub!(/Finished tests in .*/, "Finished tests in 0.00")
|
output.sub!(/Finished tests in .*/, "Finished tests in 0.00")
|
||||||
output.sub!(/Loaded suite .*/, 'Loaded suite blah')
|
output.sub!(/Loaded suite .*/, 'Loaded suite blah')
|
||||||
output.gsub!(/\[[^\]:]+:\d+\]/, '[FILE:LINE]')
|
if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||||
output.gsub!(/^(\s+)[^:]+:\d+:in/, '\1FILE:LINE:in')
|
output.gsub!(/\[(?:[A-Za-z]:)?[^\]:]+:\d+\]/, '[FILE:LINE]')
|
||||||
|
output.gsub!(/^(\s+)(?:[A-Za-z]:)?[^:]+:\d+:in/, '\1FILE:LINE:in')
|
||||||
|
else
|
||||||
|
output.gsub!(/\[[^\]:]+:\d+\]/, '[FILE:LINE]')
|
||||||
|
output.gsub!(/^(\s+)[^:]+:\d+:in/, '\1FILE:LINE:in')
|
||||||
|
end
|
||||||
assert_equal(expected, output)
|
assert_equal(expected, output)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue