summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/status/exitstatus_spec.rb
blob: 9a0be6a08d4408bff081cf3ae56adbfae0571b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require_relative '../../../spec_helper'

describe "Process::Status#exitstatus" do

  before :each do
    ruby_exe("exit(42)")
  end

  it "returns the process exit code" do
    $?.exitstatus.should == 42
  end

end