1 require File.dirname(__FILE__) + '/../../spec_helper'
2 require File.dirname(__FILE__) + '/fixtures/classes'
4 describe "IO#read_nonblock" do
5 it "raises IOError on closed stream" do
6 lambda { IOSpecs.closed_file.read_nonblock(5) }.should raise_error(IOError)