diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-05 13:48:45 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-05 13:48:45 +0000 |
commit | 0efad539ed7a3c4c3f234aed3702a3a76d18e785 (patch) | |
tree | b522c6801988dfd7746f03a76ba22ea322c5906a /test/ruby | |
parent | e66eec9284c74312de747633cb048b5bd95d8bc5 (diff) | |
download | ruby-0efad539ed7a3c4c3f234aed3702a3a76d18e785.tar.gz |
Surpress warnings: possibly useless use of :: in void context
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_autoload.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb index eeedc7d988..f1a72fa11a 100644 --- a/test/ruby/test_autoload.rb +++ b/test/ruby/test_autoload.rb @@ -23,13 +23,13 @@ $:.unshift(File.expand_path('..', __FILE__)+'/./foo') module Foo autoload :Bar, 'bar' end -Foo::Bar +p Foo::Bar INPUT end open(tmpfiles[1], 'w') do |f| f.puts 'class Foo::Bar; end' end - assert_in_out_err([tmpfiles[0]], "", [], []) + assert_in_out_err([tmpfiles[0]], "", ["Foo::Bar"], []) ensure File.unlink(*tmpfiles) rescue nil if tmpfiles tmpdirs.each {|dir| Dir.rmdir(dir)} |