From 9fa6af24f4052bcb1d006ec04b48af340a7de63c Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 16 Dec 2018 00:55:56 +0000 Subject: 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 --- spec/ruby/core/io/initialize_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3