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

ruby-changes:44359

From: nobu <ko1@a...>
Date: Sun, 16 Oct 2016 08:34:34 +0900 (JST)
Subject: [ruby-changes:44359] nobu:r56432 (trunk): test_io.rb: use assert_not_predicate

nobu	2016-10-16 08:34:27 +0900 (Sun, 16 Oct 2016)

  New Revision: 56432

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56432

  Log:
    test_io.rb: use assert_not_predicate
    
    * test/ruby/test_io.rb (test_DATA_binmode): assert_not_predicate
      for more descriptive message.

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 56431)
+++ test/ruby/test_io.rb	(revision 56432)
@@ -2470,15 +2470,10 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L2470
   end
 
   def test_DATA_binmode
-    make_tempfile {|t|
-      open(t.path, "w") {|f|
-        f.puts <<-SRC
-puts DATA.binmode?
+    assert_separately([], <<-SRC)
+assert_not_predicate(DATA, :binmode?)
 __END__
-        SRC
-      }
-      assert_in_out_err(t.path, [], %w(false))
-    }
+    SRC
   end
 
   def test_threaded_flush

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

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