summaryrefslogtreecommitdiff
path: root/spec/ffi/io_spec.rb
blob: 22c238ad85f1f6fb1c05e7d3778241b8319837af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# This file is part of ruby-ffi.
# For licensing, see LICENSE.SPECS
#

require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))

if false # disabled for #390
  describe "FFI::IO.for_fd" do
    it "produces an IO wrapping the specified file descriptor" do
      expect do
        FFI::IO.for_fd(2, "r")
      end.to_not raise_error
    end
  end
end