summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_local_remote_options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_local_remote_options.rb')
-rw-r--r--test/rubygems/test_gem_local_remote_options.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_local_remote_options.rb b/test/rubygems/test_gem_local_remote_options.rb
index e676c94f21..5f2a1d3d86 100644
--- a/test/rubygems/test_gem_local_remote_options.rb
+++ b/test/rubygems/test_gem_local_remote_options.rb
@@ -19,6 +19,18 @@ class TestGemLocalRemoteOptions < RubyGemTestCase
assert @cmd.handles?(args)
end
+ def test_both_eh
+ assert_equal false, @cmd.both?
+
+ @cmd.options[:domain] = :local
+
+ assert_equal false, @cmd.both?
+
+ @cmd.options[:domain] = :both
+
+ assert_equal true, @cmd.both?
+ end
+
def test_local_eh
assert_equal false, @cmd.local?