summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_command_manager.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-01-04 10:09:05 +0900
committerHiroshi SHIBATA <[email protected]>2021-01-04 13:14:43 +0900
commit5537adf719a37a30b17d39111cc03700f353aa2d ()
tree7523de9950b8a0118143f4ee0029aee17d043e04 /test/rubygems/test_gem_command_manager.rb
parent35c3a24c8cbcccff1108079360e2063fc354b4bd (diff)
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
Notes: Merged: https://.com/ruby/ruby/pull/4021
-rw-r--r--test/rubygems/test_gem_command_manager.rb18
1 files changed, 16 insertions, 2 deletions
@@ -50,13 +50,27 @@ class TestGemCommandManager < Gem::TestCase
end
def test_find_command_unknown
- e = assert_raises Gem::CommandLineError do
@command_manager.find_command 'xyz'
end
assert_equal 'Unknown command xyz', e.message
end
def test_run_interrupt
old_load_path = $:.dup
$: << File.expand_path("test/rubygems", PROJECT_DIR)
@@ -265,7 +279,7 @@ class TestGemCommandManager < Gem::TestCase
#check defaults
@command_manager.process_args %w[update]
- assert_includes check_options[:document], 'rdoc'
#check settings
check_options = nil