summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_update_command.rb
diff options
context:
space:
mode:
authorJosef Šimánek <josef.simanek@gmail.com>2020-06-15 00:28:25 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-15 21:20:37 +0900
commit7a571103f231e8f9e7200aa40b9a56c3f34a2e80 (patch)
treeba4d355eebc27e067e454e3402271faa1698f5d1 /test/rubygems/test_gem_commands_update_command.rb
parent3ab1cfc325811b862cb81d0360bf83216cd6f235 (diff)
Exit with non-zero status on disabled gem system update.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3229
Diffstat (limited to 'test/rubygems/test_gem_commands_update_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_update_command.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_commands_update_command.rb b/test/rubygems/test_gem_commands_update_command.rb
index 3b823a047f..bd06c84107 100644
--- a/test/rubygems/test_gem_commands_update_command.rb
+++ b/test/rubygems/test_gem_commands_update_command.rb
@@ -245,8 +245,10 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
@cmd.options[:args] = []
@cmd.options[:system] = true
- use_ui @ui do
- @cmd.execute
+ assert_raises Gem::MockGemUi::TermError do
+ use_ui @ui do
+ @cmd.execute
+ end
end
assert_empty @ui.output