From de83cb9b20f2fa6ee6bace04ff29462cedd02a6d Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 20 Aug 2012 07:31:48 +0000 Subject: test_module.rb: workaround for ruby-mode.el * test/ruby/test_module.rb (TestModule#test_undef): get rid of confusing ruby-mode.el by mixing special characters in //. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 4e5f8856a6..948ab53ed2 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -675,7 +675,7 @@ class TestModule < Test::Unit::TestCase end %w(object_id __send__ initialize).each do |n| - assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{n}' may cause serious problems$/) + assert_in_out_err([], <<-INPUT, [], %r"warning: undefining `#{n}' may cause serious problems$") $VERBOSE = false Class.new.instance_eval { undef_method(:#{n}) } INPUT -- cgit v1.2.3