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

ruby-changes:18775

From: naruse <ko1@a...>
Date: Sat, 5 Feb 2011 22:48:50 +0900 (JST)
Subject: [ruby-changes:18775] Ruby:r30801 (trunk): Surpress warnings: possibly useless use of :: in void context

naruse	2011-02-05 22:48:45 +0900 (Sat, 05 Feb 2011)

  New Revision: 30801

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

  Log:
    Surpress warnings: possibly useless use of :: in void context

  Modified files:
    trunk/test/ruby/test_autoload.rb

Index: test/ruby/test_autoload.rb
===================================================================
--- test/ruby/test_autoload.rb	(revision 30800)
+++ test/ruby/test_autoload.rb	(revision 30801)
@@ -23,13 +23,13 @@
 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)}

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

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