diff options
Diffstat (limited to 'spec/ruby/shared/process/fork.rb')
| -rw-r--r-- | spec/ruby/shared/process/fork.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/shared/process/fork.rb b/spec/ruby/shared/process/fork.rb index 11e18d7b1c..c2c2aee9bf 100644 --- a/spec/ruby/shared/process/fork.rb +++ b/spec/ruby/shared/process/fork.rb @@ -8,7 +8,7 @@ describe :process_fork, shared: true do end it "raises a NotImplementedError when called" do - -> { @object.fork }.should raise_error(NotImplementedError) + lambda { @object.fork }.should raise_error(NotImplementedError) end end @@ -60,7 +60,7 @@ describe :process_fork, shared: true do else Process.waitpid(child_id) end - File.should.exist?(@file) + File.exist?(@file).should == true end it "runs a block in a child process" do @@ -69,7 +69,7 @@ describe :process_fork, shared: true do Process.exit! } Process.waitpid(pid) - File.should.exist?(@file) + File.exist?(@file).should == true end it "marks threads from the parent as killed" do |
