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

ruby-changes:36104

From: nobu <ko1@a...>
Date: Wed, 29 Oct 2014 14:44:34 +0900 (JST)
Subject: [ruby-changes:36104] nobu:r48185 (trunk): test_require.rb: rename

nobu	2014-10-29 14:44:20 +0900 (Wed, 29 Oct 2014)

  New Revision: 48185

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

  Log:
    test_require.rb: rename
    
    * test/ruby/test_require.rb (test_load_scope): rename and add
      failure message.

  Modified files:
    trunk/test/ruby/test_require.rb
Index: test/ruby/test_require.rb
===================================================================
--- test/ruby/test_require.rb	(revision 48184)
+++ test/ruby/test_require.rb	(revision 48185)
@@ -293,7 +293,8 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L293
     }
   end
 
-  def test_load2  # [ruby-core:25039]
+  def test_load_scope
+    bug1982 = '[ruby-core:25039] [Bug #1982]'
     Tempfile.create(["test_ruby_test_require", ".rb"]) {|t|
       t.puts "Hello = 'hello'"
       t.puts "class Foo"
@@ -301,7 +302,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L302
       t.puts "end"
       t.close
 
-      assert_in_out_err([], <<-INPUT, %w("hello"), [])
+      assert_in_out_err([], <<-INPUT, %w("hello"), [], bug1982)
         load(#{ t.path.dump }, true)
       INPUT
     }

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

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