spec/../initialize_spec.rb: skip fd-specific spec
https://gist.github.com/ko1/72c03695e81a54d40649f29d0c421f26 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c130f94f2
commit
9fa6af24f4
@ -23,7 +23,6 @@ describe "IO#initialize" do
|
||||
# initialize has closed the old descriptor
|
||||
lambda { IO.for_fd(@fd).close }.should raise_error(Errno::EBADF)
|
||||
end
|
||||
end
|
||||
|
||||
it "calls #to_int to coerce the object passed as an fd" do
|
||||
obj = mock('fileno')
|
||||
@ -34,6 +33,7 @@ describe "IO#initialize" do
|
||||
# initialize has closed the old descriptor
|
||||
lambda { IO.for_fd(@fd).close }.should raise_error(Errno::EBADF)
|
||||
end
|
||||
end
|
||||
|
||||
it "raises a TypeError when passed an IO" do
|
||||
lambda { @io.send :initialize, STDOUT, 'w' }.should raise_error(TypeError)
|
||||
|
Loading…
x
Reference in New Issue
Block a user