summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-16 00:55:56 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-16 00:55:56 +0000
commit9fa6af24f4052bcb1d006ec04b48af340a7de63c (patch)
treeb66fbc916c1ff87248c91c4dda859672ac8f5f6e /spec
parent5c130f94f281a6514c45ca583412a2c2d0cce7b3 (diff)
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
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/io/initialize_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/ruby/core/io/initialize_spec.rb b/spec/ruby/core/io/initialize_spec.rb
index bc1f50e531..5bf194f15c 100644
--- a/spec/ruby/core/io/initialize_spec.rb
+++ b/spec/ruby/core/io/initialize_spec.rb
@@ -23,16 +23,16 @@ 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')
- fd = new_fd @name, "r:utf-8"
- obj.should_receive(:to_int).and_return(fd)
- @io.send :initialize, obj, 'r'
- @io.fileno.should == fd
- # initialize has closed the old descriptor
- lambda { IO.for_fd(@fd).close }.should raise_error(Errno::EBADF)
+ it "calls #to_int to coerce the object passed as an fd" do
+ obj = mock('fileno')
+ fd = new_fd @name, "r:utf-8"
+ obj.should_receive(:to_int).and_return(fd)
+ @io.send :initialize, obj, 'r'
+ @io.fileno.should == fd
+ # 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