From a07b895a53eff604d945b6c1a0f98d07efea81fa Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Thu, 22 Jan 2026 13:31:41 +0100 Subject: [PATCH] Fix a test that uses invalid syntax Writing it like this on the same line was never valid. The expected html also contains the `end` from the class definition, which I think should not happen. --- test/rdoc/parser/ruby_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/rdoc/parser/ruby_test.rb b/test/rdoc/parser/ruby_test.rb index e4546b80db..c3dc8a09a1 100644 --- a/test/rdoc/parser/ruby_test.rb +++ b/test/rdoc/parser/ruby_test.rb @@ -2847,12 +2847,13 @@ def blah() def test_parse_instance_operation_method util_parser <<-RUBY class Foo - def self.& end + def self.& + end end RUBY expected = <def self.& end +def self.& end EXPECTED expected = expected.rstrip