diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-29 05:44:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-29 05:44:20 +0000 |
commit | 5de3e7e2bdce598dfc7348fbe3ef8ee951058d1d (patch) | |
tree | dadace0d2e7ca9ff194a26855451277cf4435e22 /test/ruby/test_require.rb | |
parent | 6c6d4da21bfcfe75b8b2f550a42e27fc1ace7a69 (diff) | |
download | ruby-5de3e7e2bdce598dfc7348fbe3ef8ee951058d1d.tar.gz |
test_require.rb: rename
* test/ruby/test_require.rb (test_load_scope): rename and add
failure message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_require.rb')
-rw-r--r-- | test/ruby/test_require.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 3bd327c851..5b299f4228 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -293,7 +293,8 @@ class TestRequire < Test::Unit::TestCase } 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 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 } |