Skip to content

Commit de83cb9

Browse files
committed
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
1 parent 73eda17 commit de83cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ruby/test_module.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ class << o; self; end.instance_eval { undef_method(:foo) }
675675
end
676676

677677
%w(object_id __send__ initialize).each do |n|
678-
assert_in_out_err([], <<-INPUT, [], /warning: undefining `#{n}' may cause serious problems$/)
678+
assert_in_out_err([], <<-INPUT, [], %r"warning: undefining `#{n}' may cause serious problems$")
679679
$VERBOSE = false
680680
Class.new.instance_eval { undef_method(:#{n}) }
681681
INPUT

0 commit comments

Comments
 (0)