summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2025-12-24 22:52:23 +0900
committerNARUSE, Yui <naruse@airemix.jp>2025-12-24 22:55:44 +0900
commit285e22edc55522f3466357c4c27615a6015d84dc (patch)
tree3ef2305eeb40fbf5f81a08851262ba4e2bc5c786 /test
parentba2f6972193cdbd7c1e77e26212513e47926b115 (diff)
Revert "Add link to Ruby options doc in help text"
This reverts commit 31ff07ed1eb05d01f7da3c017d542137a3db1e94. * Don't add a test which only runs on production release * https://github.com/ruby/actions/actions/runs/20486784889/job/58870959976 * Don't add a new line to `ruby --help` * https://github.com/ruby/ruby/pull/14142#issuecomment-3689829564
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_rubyoptions.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 96d932aea2..735d2681fb 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -49,24 +49,18 @@ class TestRubyOptions < Test::Unit::TestCase
def test_usage
assert_in_out_err(%w(-h)) do |r, e|
- assert_operator(r.size, :<=, 26)
- longer = r[3..-1].select {|x| x.size >= 80}
+ assert_operator(r.size, :<=, 25)
+ longer = r[1..-1].select {|x| x.size >= 80}
assert_equal([], longer)
assert_equal([], e)
-
- version = RUBY_PATCHLEVEL == -1 ? "master" : "#{RUBY_VERSION_MAJOR}.#{RUBY_VERSION_MINOR}"
- assert_include(r, "Details and examples at https://docs.ruby-lang.org/en/#{version}/ruby/options_md.html")
end
end
def test_usage_long
assert_in_out_err(%w(--help)) do |r, e|
- longer = r[3..-1].select {|x| x.size > 80}
+ longer = r[1..-1].select {|x| x.size > 80}
assert_equal([], longer)
assert_equal([], e)
-
- version = RUBY_PATCHLEVEL == -1 ? "master" : "#{RUBY_VERSION_MAJOR}.#{RUBY_VERSION_MINOR}"
- assert_include(r, "Details and examples at https://docs.ruby-lang.org/en/#{version}/ruby/options_md.html")
end
end