* 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
This commit is contained in:
nobu 2014-10-29 05:44:20 +00:00
Родитель 6c6d4da21b
Коммит 5de3e7e2bd
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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
}