ruby-changes:35029
From: hsbt <ko1@a...>
Date: Sat, 9 Aug 2014 10:28:58 +0900 (JST)
Subject: [ruby-changes:35029] hsbt:r47111 (trunk): * test/minitest/test_minitest_unit.rb: removed obsoleted condition
hsbt 2014-08-09 10:28:50 +0900 (Sat, 09 Aug 2014) New Revision: 47111 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47111 Log: * test/minitest/test_minitest_unit.rb: removed obsoleted condition for Ruby 1.8. * test/ruby/test_time_tz.rb: ditto. Modified files: trunk/ChangeLog trunk/test/minitest/test_minitest_unit.rb trunk/test/ruby/test_time_tz.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47110) +++ ChangeLog (revision 47111) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Aug 9 10:28:03 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * 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@g...> * test/cgi/test_cgi_core.rb: removed obsoleted condition for Ruby 1.8. Index: test/ruby/test_time_tz.rb =================================================================== --- test/ruby/test_time_tz.rb (revision 47110) +++ test/ruby/test_time_tz.rb (revision 47111) @@ -72,14 +72,8 @@ class TestTimeTZ < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L72 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 Index: test/minitest/test_minitest_unit.rb =================================================================== --- test/minitest/test_minitest_unit.rb (revision 47110) +++ test/minitest/test_minitest_unit.rb (revision 47111) @@ -190,11 +190,7 @@ class TestMiniTestUnit < MetaMetaMetaTes https://github.com/ruby/ruby/blob/trunk/test/minitest/test_minitest_unit.rb#L190 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/