summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2024-02-16 16:47:32 +0000
committergit <svn-admin@ruby-lang.org>2024-02-16 16:47:36 +0000
commitf5801e2bf404cbb0f673a6ebb040b0ba6cd01b77 (patch)
tree8ee0d5041c9d46df4448c80c28ffb929daabe4b4 /test
parent4411cdeef9f49cc295b2456b15a14550e8d88804 (diff)
[ruby/irb] Standardize command related names
(https://github.com/ruby/irb/pull/873) * Replace ExtendCommand with Command and standardize command related names 1. Rename lib/irb/extend-command.rb to lib/irb/command.rb 2. Rename lib/irb/cmd/*.rb to lib/irb/command/*.rb 3. Rename test/irb/test_cmd.rb to test/irb/test_command.rb 4. Rename ExtendCommand to Command * Alias ExtendCommand to Command and deprecate it * Rename Command::Nop to Command::Base * Not deprecate old constants just yet * Add lib/irb/cmd/nop.rb back https://github.com/ruby/irb/commit/462c1284af
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_command.rb (renamed from test/irb/test_cmd.rb)5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_command.rb
index b9a155ec09..15ae6a658e 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_command.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: false
require "rubygems"
require "irb"
-require "irb/extend-command"
require_relative "helper"
@@ -797,7 +796,7 @@ module TestIRB
assert(possible_rdoc_output.any? { |output| output.match?(out) }, "Expect the `show_doc` command to match one of the possible outputs. Got:\n#{out}")
ensure
# this is the only way to reset the redefined method without coupling the test with its implementation
- EnvUtil.suppress_warning { load "irb/cmd/help.rb" }
+ EnvUtil.suppress_warning { load "irb/command/help.rb" }
end
def test_show_doc_without_rdoc
@@ -813,7 +812,7 @@ module TestIRB
assert_include(err, "Can't display document because `rdoc` is not installed.\n")
ensure
# this is the only way to reset the redefined method without coupling the test with its implementation
- EnvUtil.suppress_warning { load "irb/cmd/help.rb" }
+ EnvUtil.suppress_warning { load "irb/command/help.rb" }
end
end