1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/rubygems/test_gem_commands_which_command.rb:

"missing" exists on ruby's top source directory. [Bug #4815]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-06-03 19:09:59 +00:00
parent 7ad690313b
commit 1de2e1fdc2
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Sat Jun 4 04:04:41 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/rubygems/test_gem_commands_which_command.rb:
"missing" exists on ruby's top source directory. [Bug #4815]
Fri Jun 3 21:48:12 2011 NARUSE, Yui <naruse@ruby-lang.org> Fri Jun 3 21:48:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/rubygems/test_case.rb: Refix for test-all in separate directory. * lib/rubygems/test_case.rb: Refix for test-all in separate directory.

View file

@ -33,19 +33,19 @@ class TestGemCommandsWhichCommand < Gem::TestCase
util_foo_bar util_foo_bar
@cmd.handle_options %w[foo_bar missing] @cmd.handle_options %w[foo_bar missinglib]
use_ui @ui do use_ui @ui do
@cmd.execute @cmd.execute
end end
assert_equal "#{@foo_bar.full_gem_path}/lib/foo_bar.rb\n", @ui.output assert_equal "#{@foo_bar.full_gem_path}/lib/foo_bar.rb\n", @ui.output
assert_match %r%Can.t find ruby library file or shared library missing\n%, assert_match %r%Can.t find ruby library file or shared library missinglib\n%,
@ui.error @ui.error
end end
def test_execute_missing def test_execute_missing
@cmd.handle_options %w[missing] @cmd.handle_options %w[missinglib]
use_ui @ui do use_ui @ui do
assert_raises Gem::MockGemUi::TermError do assert_raises Gem::MockGemUi::TermError do
@ -54,7 +54,7 @@ class TestGemCommandsWhichCommand < Gem::TestCase
end end
assert_equal '', @ui.output assert_equal '', @ui.output
assert_match %r%Can.t find ruby library file or shared library missing\n%, assert_match %r%Can.t find ruby library file or shared library missinglib\n%,
@ui.error @ui.error
end end