File: io_spec.rb

package info (click to toggle)
ruby-ffi 1.15.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,752 kB
  • sloc: ruby: 8,626; ansic: 6,986; xml: 151; sh: 51; makefile: 15
file content (16 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (10)
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