mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 11:33:58 +02:00
Merge RubyGems-3.3.18 and Bundler-2.3.18
This commit is contained in:
parent
7ef68dd74a
commit
0918783347
69 changed files with 586 additions and 167 deletions
|
@ -535,6 +535,7 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
|||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating installed gems", out.shift
|
||||
assert_equal "Nothing to update", out.shift
|
||||
assert_equal "Gems already up-to-date: a", out.shift
|
||||
|
||||
assert_empty out
|
||||
end
|
||||
|
@ -811,4 +812,24 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
|
|||
assert_equal " a-2", out.shift
|
||||
assert_empty out
|
||||
end
|
||||
|
||||
def test_execute_named_not_installed_and_no_update
|
||||
spec_fetcher do |fetcher|
|
||||
fetcher.spec 'a', 2
|
||||
end
|
||||
|
||||
@cmd.options[:args] = %w[a b]
|
||||
|
||||
use_ui @ui do
|
||||
@cmd.execute
|
||||
end
|
||||
|
||||
out = @ui.output.split "\n"
|
||||
assert_equal "Updating installed gems", out.shift
|
||||
assert_equal "Nothing to update", out.shift
|
||||
assert_equal "Gems already up-to-date: a", out.shift
|
||||
assert_equal "Gems not currently installed: b", out.shift
|
||||
|
||||
assert_empty out
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue