mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@032ee74
This commit is contained in:
parent
f646d20aae
commit
5aaa75e7c1
263 changed files with 921 additions and 921 deletions
|
|
@ -6,14 +6,14 @@ describe :kernel_system, shared: true do
|
|||
-> { @object.system("echo a") }.should output_to_fd("a\n")
|
||||
|
||||
$?.should be_an_instance_of Process::Status
|
||||
$?.success?.should == true
|
||||
$?.should.success?
|
||||
end
|
||||
|
||||
it "returns true when the command exits with a zero exit status" do
|
||||
@object.system(ruby_cmd('exit 0')).should == true
|
||||
|
||||
$?.should be_an_instance_of Process::Status
|
||||
$?.success?.should == true
|
||||
$?.should.success?
|
||||
$?.exitstatus.should == 0
|
||||
end
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ describe :kernel_system, shared: true do
|
|||
@object.system(ruby_cmd('exit 1')).should == false
|
||||
|
||||
$?.should be_an_instance_of Process::Status
|
||||
$?.success?.should == false
|
||||
$?.should_not.success?
|
||||
$?.exitstatus.should == 1
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue