diff options
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/core/process/exec_spec.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/spec/ruby/core/process/exec_spec.rb b/spec/ruby/core/process/exec_spec.rb index 5a6e3fc1a4..0a2c2f77e7 100644 --- a/spec/ruby/core/process/exec_spec.rb +++ b/spec/ruby/core/process/exec_spec.rb @@ -29,16 +29,8 @@ describe "Process.exec" do end end - platform_is_not :openbsd do - it "raises Errno::EACCES when passed a directory" do - -> { Process.exec File.dirname(__FILE__) }.should raise_error(Errno::EACCES) - end - end - - platform_is :openbsd do - it "raises Errno::EISDIR when passed a directory" do - -> { Process.exec File.dirname(__FILE__) }.should raise_error(Errno::EISDIR) - end + it "raises Errno::EACCES when passed a directory" do + -> { Process.exec File.dirname(__FILE__) }.should raise_error(Errno::EACCES) end it "runs the specified command, replacing current process" do |