Sha256: e2177367c5aaf77b105a9be8a5fd570b7006ff7d0aa21dbf1ef907690c75eb62

Contents?: true

Size: 260 Bytes

Versions: 9

Compression:

Stored size: 260 Bytes

Contents

# frozen_string_literal: true

require_relative "helper"
require "rubygems"

class TestExit < Gem::TestCase
  def test_exit
    system(*ruby_with_rubygems_in_load_path, "-e", "raise Gem::SystemExitException.new(2)")
    assert_equal 2, $?.exitstatus
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubygems-update-3.3.27 test/rubygems/test_exit.rb
rubygems-update-3.3.26 test/rubygems/test_exit.rb
rubygems-update-3.3.25 test/rubygems/test_exit.rb
rubygems-update-3.3.24 test/rubygems/test_exit.rb
rubygems-update-3.3.23 test/rubygems/test_exit.rb
rubygems-update-3.3.22 test/rubygems/test_exit.rb
rubygems-update-3.3.21 test/rubygems/test_exit.rb
rubygems-update-3.3.20 test/rubygems/test_exit.rb
rubygems-update-3.3.19 test/rubygems/test_exit.rb