mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
Merge rubygems-2.6.12 from rubygems/rubygems.
* Details of changes:0090800402/History.txt (L3)
* I kept ko1's commmit related thread issue. It's not merged 2.6 branch on rubygems.1721dfa0ea
* I removed test_realworld_default_gem from rubygems-2.6.12. It fails on Ruby trunk. Because it's differences of test suite and environment. https://github.com/rubygems/rubygems/pull/1899 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
abb8b33011
commit
708a10d35b
16 changed files with 164 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