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

ruby-changes:28128

From: naruse <ko1@a...>
Date: Mon, 8 Apr 2013 12:08:14 +0900 (JST)
Subject: [ruby-changes:28128] naruse:r40180 (trunk): Suppress warnings

naruse	2013-04-08 12:08:03 +0900 (Mon, 08 Apr 2013)

  New Revision: 40180

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

  Log:
    Suppress warnings

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

Index: test/ruby/test_module.rb
===================================================================
--- test/ruby/test_module.rb	(revision 40179)
+++ test/ruby/test_module.rb	(revision 40180)
@@ -334,9 +334,6 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L334
 
     a = Module.new
     Other.const_set :BUG6454, a
-
-    original = Other::BUG6454.inspect
-
     b = a.dup
     Other.const_set :BUG6454_dup, b
 
@@ -1540,8 +1537,8 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1537
       protected :foo
     end
     a = c.new
-    assert_respond_to a, [:foo, true]
-    assert_nothing_raised(NoMethodError) {a.send :foo}
+    assert_respond_to a, [:foo, true], bug8005
+    assert_nothing_raised(NoMethodError, bug8005) {a.send :foo}
   end
 
   def test_class_variables
@@ -1635,7 +1632,7 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1632
 
   def test_uninitialized_instance_variable
     a = AttrTest.new
-    assert_warning /instance variable @ivar not initialized/ do
+    assert_warning(/instance variable @ivar not initialized/) do
       assert_nil(a.ivar)
     end
     a.instance_variable_set(:@ivar, 42)

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

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