Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IO.popen will call the close method which was overridden when given a…
… block. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions class IO alias :close_orig :close def close warn "*** custom close" $close = :closed close_orig end end IO.popen("ruby -v", "r") {} assert_equal($close, :closed) puts :ok }}}
- Loading branch information