Sha256: 81ab5af2b5b0527afff78fe61021f04aacd157b4d0558d8122dc17b24717cc1d

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

#
# This file is part of ruby-ffi.
# For licensing, see LICENSE.SPECS
#

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffi-1.9.5-x64-mingw32 spec/ffi/io_spec.rb
ffi-1.9.5-x86-mingw32 spec/ffi/io_spec.rb
ffi-1.9.5 spec/ffi/io_spec.rb