aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_query_command.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-22 08:24:42 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-22 08:24:42 +0000
commit372dcece3f69989d133f720468f1e24aa1133cda (patch)
treec173ca48a23ce18afa44feb15bf68d2dd14ac619 /test/rubygems/test_gem_commands_query_command.rb
parentd0e5a34ac7c34e70c145024a0fed8f6042814f29 (diff)
downloadruby-372dcece3f69989d133f720468f1e24aa1133cda.tar.gz
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
Diffstat (limited to 'test/rubygems/test_gem_commands_query_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_query_command.rb39
1 files changed, 33 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_query_command.rb b/test/rubygems/test_gem_commands_query_command.rb
index b56b33b639..aa54e9f545 100644
--- a/test/rubygems/test_gem_commands_query_command.rb
+++ b/test/rubygems/test_gem_commands_query_command.rb
@@ -29,7 +29,34 @@ class TestGemCommandsQueryCommand < RubyGemTestCase
*** REMOTE GEMS ***
a (2)
-pl (1)
+pl (1 i386-linux)
+ EOF
+
+ assert_equal expected, @ui.output
+ assert_equal '', @ui.error
+ end
+
+ def test_execute_platform
+ @a1r = @a1.dup
+
+ @a1.platform = 'x86-linux'
+ @a2.platform = 'universal-darwin'
+
+ @si = util_setup_spec_fetcher @a1, @a1r, @a2, @b2, @pl1
+
+ @cmd.handle_options %w[-r -a]
+
+ use_ui @ui do
+ @cmd.execute
+ end
+
+ expected = <<-EOF
+
+*** REMOTE GEMS ***
+
+a (2 universal-darwin, 1 ruby x86-linux)
+b (2)
+pl (1 i386-linux)
EOF
assert_equal expected, @ui.output
@@ -51,7 +78,7 @@ pl (1)
*** REMOTE GEMS ***
a (2, 1)
-pl (1)
+pl (1 i386-linux)
EOF
assert_equal expected, @ui.output
@@ -73,7 +100,7 @@ pl (1)
*** REMOTE GEMS ***
a (3.a, 2, 1)
-pl (1)
+pl (1 i386-linux)
EOF
assert_equal expected, @ui.output
@@ -311,7 +338,7 @@ a (3.a, 2, 1)
a_evil (9)
b (2)
c (1.2)
-pl (1)
+pl (1 i386-linux)
EOF
assert_equal expected, @ui.output
@@ -348,7 +375,7 @@ pl
expected = <<-EOF
a (2)
-pl (1)
+pl (1 i386-linux)
EOF
assert_equal expected, @ui.output
@@ -388,7 +415,7 @@ a (3.a, 2, 1)
a_evil (9)
b (2)
c (1.2)
-pl (1)
+pl (1 i386-linux)
EOF
assert_equal expected, @ui.output