summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/system_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/system_spec.rb')
-rw-r--r--spec/ruby/core/kernel/system_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/kernel/system_spec.rb b/spec/ruby/core/kernel/system_spec.rb
index 9196a9f9f1..696e6ae3d7 100644
--- a/spec/ruby/core/kernel/system_spec.rb
+++ b/spec/ruby/core/kernel/system_spec.rb
@@ -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