summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_parser_changelog.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-21 21:03:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-24 16:46:19 +0900
commit127f735c1e5e0771076caf2a74390757a42fb177 (patch)
treeb3c29e902f9b84fc4db07f1f541c506b7c5ffd1a /test/rdoc/test_rdoc_parser_changelog.rb
parentb88d1e6b44164bca0c2b85ea6639469813e1e1d8 (diff)
[ruby/rdoc] Tweak log entry markdown
* add 3 levels to headings * prefix commit log to labels to make unique IDs https://github.com/ruby/rdoc/commit/5074c13209
Diffstat (limited to 'test/rdoc/test_rdoc_parser_changelog.rb')
-rw-r--r--test/rdoc/test_rdoc_parser_changelog.rb36
1 files changed, 35 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_parser_changelog.rb b/test/rdoc/test_rdoc_parser_changelog.rb
index 220f008aec..5f43811c03 100644
--- a/test/rdoc/test_rdoc_parser_changelog.rb
+++ b/test/rdoc/test_rdoc_parser_changelog.rb
@@ -340,6 +340,29 @@ commit\ a8dc5156e183489c5121fb1759bda5d9406d9175
Date: 2021-01-20 01:58:26 +0900
* 2021-01-20 [ci skip]
+
+commit de5f8a92d5001799bedb3b1a271a2d9b23c6c8fb
+ Author: Masataka Pocke Kuwabara <kuwabara@pocke.me>
+ Date: 2021-01-01 14:25:08 +0900
+
+ Make args info for RubyVM::AST to available on endless method without parens
+
+ Problem
+ ===
+
+ Arguments information is missing for endless method without parens.
+ For example:
+
+ ```ruby
+ # ok
+ ```
+
+ It causes an error if a program expects `args` node exists.
+
+ Solution
+ ===
+
+ Call `new_args` on this case.
ChangeLog
parser.scan
@@ -354,7 +377,18 @@ ChangeLog
head(2, '2021-01-20'),
blank_line,
head(3, '2021-01-20 01:58:26 +0900 git <svn-admin@ruby-lang.org>'),
- list(:BULLET, item(nil, para('2021-01-20 [ci skip]'))))
+ list(:BULLET, item(nil, para('2021-01-20 [ci skip]'))),
+ head(2, '2021-01-01'),
+ blank_line,
+ head(3, '2021-01-01 14:25:08 +0900 Masataka Pocke Kuwabara <kuwabara@pocke.me>'),
+ para('Make args info for RubyVM::AST to available on endless method without parens'),
+ head(4, 'Problem'),
+ para("Arguments information is missing for endless method without parens.\n" +
+ "For example:"),
+ verb("# ok\n").tap {|v| v.format = :ruby},
+ para('It causes an error if a program expects <code>args</code> node exists.'),
+ head(4, 'Solution'),
+ para('Call <code>new_args</code> on this case.'))
expected.file = @top_level