From 372dcece3f69989d133f720468f1e24aa1133cda Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 22 Apr 2010 08:24:42 +0000 Subject: Update to RubyGems 1.3.7.pre.1 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_commands_server_command.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test/rubygems/test_gem_commands_server_command.rb') diff --git a/test/rubygems/test_gem_commands_server_command.rb b/test/rubygems/test_gem_commands_server_command.rb index 5b4faae06e..780e542036 100644 --- a/test/rubygems/test_gem_commands_server_command.rb +++ b/test/rubygems/test_gem_commands_server_command.rb @@ -13,16 +13,23 @@ class TestGemCommandsServerCommand < RubyGemTestCase @cmd.send :handle_options, %w[-p 8808 --no-daemon] assert_equal false, @cmd.options[:daemon] - assert_equal @gemhome, @cmd.options[:gemdir] + assert_equal [], @cmd.options[:gemdir] assert_equal 8808, @cmd.options[:port] @cmd.send :handle_options, %w[-p 9999 -d /nonexistent --daemon] assert_equal true, @cmd.options[:daemon] - assert_equal File.expand_path('/nonexistent'), @cmd.options[:gemdir] + assert_equal [File.expand_path('/nonexistent')], @cmd.options[:gemdir] assert_equal 9999, @cmd.options[:port] end + def test_handle_options_gemdir + @cmd.send :handle_options, %w[--dir a --dir b] + + assert_equal [File.expand_path('a'), File.expand_path('b')], + @cmd.options[:gemdir] + end + def test_handle_options_port @cmd.send :handle_options, %w[-p 0] assert_equal 0, @cmd.options[:port] -- cgit v1.2.3