diff --git a/spec/ruby/core/io/close_on_exec_spec.rb b/spec/ruby/core/io/close_on_exec_spec.rb index 91bd3c8c40..4e89e08d61 100644 --- a/spec/ruby/core/io/close_on_exec_spec.rb +++ b/spec/ruby/core/io/close_on_exec_spec.rb @@ -44,10 +44,6 @@ describe "IO#close_on_exec=" do @io.close -> { @io.close_on_exec = true }.should raise_error(IOError) end - - it "returns nil" do - @io.send(:close_on_exec=, true).should be_nil - end end end