mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 02:23:59 +02:00
lib/rubygems: bump up RubyGems version to 2.6.12. [Backport #13842]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1069d3f18b
commit
fd41a38470
17 changed files with 175 additions and 18 deletions
|
@ -642,7 +642,7 @@ pl (1)
|
|||
assert_equal expected, @ui.output
|
||||
end
|
||||
|
||||
def test_execute_exact
|
||||
def test_execute_exact_remote
|
||||
spec_fetcher do |fetcher|
|
||||
fetcher.spec 'coolgem-omg', 3
|
||||
fetcher.spec 'coolgem', '4.2.1'
|
||||
|
@ -665,6 +665,60 @@ coolgem (4.2.1)
|
|||
assert_equal expected, @ui.output
|
||||
end
|
||||
|
||||
def test_execute_exact_local
|
||||
spec_fetcher do |fetcher|
|
||||
fetcher.spec 'coolgem-omg', 3
|
||||
fetcher.spec 'coolgem', '4.2.1'
|
||||
fetcher.spec 'wow_coolgem', 1
|
||||
end
|
||||
|
||||
@cmd.handle_options %w[--exact coolgem]
|
||||
|
||||
use_ui @ui do
|
||||
@cmd.execute
|
||||
end
|
||||
|
||||
expected = <<-EOF
|
||||
|
||||
*** LOCAL GEMS ***
|
||||
|
||||
coolgem (4.2.1)
|
||||
EOF
|
||||
|
||||
assert_equal expected, @ui.output
|
||||
end
|
||||
|
||||
def test_execute_exact_multiple
|
||||
spec_fetcher do |fetcher|
|
||||
fetcher.spec 'coolgem-omg', 3
|
||||
fetcher.spec 'coolgem', '4.2.1'
|
||||
fetcher.spec 'wow_coolgem', 1
|
||||
|
||||
fetcher.spec 'othergem-omg', 3
|
||||
fetcher.spec 'othergem', '1.2.3'
|
||||
fetcher.spec 'wow_othergem', 1
|
||||
end
|
||||
|
||||
@cmd.handle_options %w[--exact coolgem othergem]
|
||||
|
||||
use_ui @ui do
|
||||
@cmd.execute
|
||||
end
|
||||
|
||||
expected = <<-EOF
|
||||
|
||||
*** LOCAL GEMS ***
|
||||
|
||||
coolgem (4.2.1)
|
||||
|
||||
*** LOCAL GEMS ***
|
||||
|
||||
othergem (1.2.3)
|
||||
EOF
|
||||
|
||||
assert_equal expected, @ui.output
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def add_gems_to_fetcher
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue