mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/minitest/test_minitest_unit.rb: removed obsoleted condition
for Ruby 1.8. * test/ruby/test_time_tz.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
556f805493
commit
45592f4b4c
3 changed files with 9 additions and 13 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Aug 9 10:28:03 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/minitest/test_minitest_unit.rb: removed obsoleted condition
|
||||
for Ruby 1.8.
|
||||
* test/ruby/test_time_tz.rb: ditto.
|
||||
|
||||
Sat Aug 9 10:18:00 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/cgi/test_cgi_core.rb: removed obsoleted condition for Ruby 1.8.
|
||||
|
|
|
@ -190,11 +190,7 @@ class TestMiniTestUnit < MetaMetaMetaTestCase
|
|||
end
|
||||
|
||||
def util_expand_bt bt
|
||||
if RUBY_VERSION >= '1.9.0' then
|
||||
bt.map { |f| (f =~ /^\./) ? File.expand_path(f) : f }
|
||||
else
|
||||
bt
|
||||
end
|
||||
bt.map { |f| (f =~ /^\./) ? File.expand_path(f) : f }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -72,14 +72,8 @@ class TestTimeTZ < Test::Unit::TestCase
|
|||
include Util
|
||||
extend Util
|
||||
|
||||
if RUBY_VERSION < "1.9"
|
||||
def time_to_s(t)
|
||||
t.strftime("%Y-%m-%d %H:%M:%S ") + format_gmtoff(t.gmtoff)
|
||||
end
|
||||
else
|
||||
def time_to_s(t)
|
||||
t.to_s
|
||||
end
|
||||
def time_to_s(t)
|
||||
t.to_s
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue