Updated RubySpec source to 55122684.
[rbx.git] / spec / frozen / 1.8 / core / io / read_nonblock_spec.rb
blobc70fe9da161927712d4fcca90540995db9a12d8e
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)
7   end
8 end