mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Import RubyGems from master as of commit b165260
* test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
66cc0fa4ab
commit
4c2304f000
34 changed files with 1169 additions and 597 deletions
|
@ -195,6 +195,34 @@ pl (1)
|
|||
assert_equal '', @ui.error
|
||||
end
|
||||
|
||||
def test_execute_installed_inverse
|
||||
@cmd.handle_options %w[-n a --no-installed]
|
||||
|
||||
e = assert_raises Gem::MockGemUi::TermError do
|
||||
use_ui @ui do
|
||||
@cmd.execute
|
||||
end
|
||||
end
|
||||
|
||||
assert_equal "false\n", @ui.output
|
||||
assert_equal '', @ui.error
|
||||
|
||||
assert_equal 1, e.exit_code
|
||||
end
|
||||
|
||||
def test_execute_installed_inverse_not_installed
|
||||
@cmd.handle_options %w[-n not_installed --no-installed]
|
||||
|
||||
assert_raises Gem::MockGemUi::SystemExitException do
|
||||
use_ui @ui do
|
||||
@cmd.execute
|
||||
end
|
||||
end
|
||||
|
||||
assert_equal "true\n", @ui.output
|
||||
assert_equal '', @ui.error
|
||||
end
|
||||
|
||||
def test_execute_installed_no_name
|
||||
@cmd.handle_options %w[--installed]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue