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

ruby-changes:36031

From: nobu <ko1@a...>
Date: Thu, 23 Oct 2014 19:16:30 +0900 (JST)
Subject: [ruby-changes:36031] nobu:r48112 (trunk): test_object.rb: avoid confusing ruby-mode.el

nobu	2014-10-23 19:16:24 +0900 (Thu, 23 Oct 2014)

  New Revision: 48112

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

  Log:
    test_object.rb: avoid confusing ruby-mode.el
    
    * test/ruby/test_object.rb: get rid of confusing ruby-mode.el
      string highlight.

  Modified files:
    trunk/test/ruby/test_object.rb
Index: test/ruby/test_object.rb
===================================================================
--- test/ruby/test_object.rb	(revision 48111)
+++ test/ruby/test_object.rb	(revision 48112)
@@ -309,12 +309,12 @@ class TestObject < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L309
   end
 
   def test_redefine_method_which_may_case_serious_problem
-    assert_in_out_err([], <<-INPUT, [], /warning: redefining `object_id' may cause serious problems$/)
+    assert_in_out_err([], <<-INPUT, [], %r"warning: redefining `object_id' may cause serious problems$")
       $VERBOSE = false
       def (Object.new).object_id; end
     INPUT
 
-    assert_in_out_err([], <<-INPUT, [], /warning: redefining `__send__' may cause serious problems$/)
+    assert_in_out_err([], <<-INPUT, [], %r"warning: redefining `__send__' may cause serious problems$")
       $VERBOSE = false
       def (Object.new).__send__; end
     INPUT
@@ -354,7 +354,7 @@ class TestObject < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L354
     assert_raise(NoMethodError, bug2202) {o2.meth2}
 
     %w(object_id __send__ initialize).each do |m|
-      assert_in_out_err([], <<-INPUT, %w(:ok), /warning: removing `#{m}' may cause serious problems$/)
+      assert_in_out_err([], <<-INPUT, %w(:ok), %r"warning: removing `#{m}' may cause serious problems$")
         $VERBOSE = false
         begin
           Class.new.instance_eval { remove_method(:#{m}) }

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

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