[前][次][番号順一覧][スレッド一覧]

ruby-changes:33015

From: nobu <ko1@a...>
Date: Sat, 22 Feb 2014 10:51:57 +0900 (JST)
Subject: [ruby-changes:33015] nobu:r45094 (trunk): test_logdevice.rb: use assert_in_out_err

nobu	2014-02-22 10:51:52 +0900 (Sat, 22 Feb 2014)

  New Revision: 45094

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45094

  Log:
    test_logdevice.rb: use assert_in_out_err
    
    * test/logger/test_logdevice.rb (test_shifting_midnight): use
      verbose assert_in_out_err instead of assert_ruby_status.
    
    * test/logger/test_logdevice.rb (test_shifting_dst_change): ditto.

  Modified files:
    trunk/test/logger/test_logdevice.rb
Index: test/logger/test_logdevice.rb
===================================================================
--- test/logger/test_logdevice.rb	(revision 45093)
+++ test/logger/test_logdevice.rb	(revision 45094)
@@ -328,7 +328,7 @@ class TestLogDevice < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/logger/test_logdevice.rb#L328
 
   def test_shifting_midnight
     Dir.mktmpdir do |tmpdir|
-      assert_ruby_status([*%W"--disable=gems -rlogger -C#{tmpdir} -"], <<-'end;')
+      assert_in_out_err([*%W"--disable=gems -rlogger -C#{tmpdir} -"], <<-'end;')
         begin
           module FakeTime
             attr_accessor :now
@@ -364,7 +364,7 @@ class TestLogDevice < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/logger/test_logdevice.rb#L364
 
   def test_shifting_dst_change
     Dir.mktmpdir do |tmpdir|
-      system({"TZ"=>"Europe/London"}, EnvUtil.rubybin, *%W"--disable=gems -rlogger -C#{tmpdir} -e", <<-'end;')
+      assert_in_out_err([{"TZ"=>"Europe/London"}, *%W"--disable=gems -rlogger -C#{tmpdir} -"], <<-'end;')
         begin
           module FakeTime
             attr_accessor :now

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]