PageRenderTime 26ms CodeModel.GetById 25ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/spec/tags/core/io/for_fd_tags.txt

http://github.com/MagLev/maglev
Plain Text | 47 lines | 47 code | 0 blank | 0 comment | 0 complexity | 68481189b6b31b9b8bec54fec680bd80 MD5 | raw file
Possible License(s): LGPL-2.1
 1fails:IO.for_fd creates an IO instance from a Fixnum argument
 2fails:IO.for_fd calls #to_int on an object to convert to a Fixnum
 3fails:IO.for_fd raises an Errno::EBADF if the file descriptor is not valid
 4fails:IO.for_fd raises an IOError if passed a closed stream
 5fails:IO.for_fd raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode
 6fails:IO.for_fd uses the external encoding specified in the mode argument
 7fails:IO.for_fd uses the external and the internal encoding specified in the mode argument
 8fails:IO.for_fd uses the external encoding specified via the :external_encoding option
 9fails:IO.for_fd uses the internal encoding specified via the :internal_encoding option
10fails:IO.for_fd uses the colon-separated encodings specified via the :encoding option
11fails:IO.for_fd ingores the :encoding option when the :external_encoding option is present
12fails:IO.for_fd ingores the :encoding option when the :internal_encoding option is present
13fails:IO.for_fd uses the encoding specified via the :mode option hash
14fails:IO.for_fd ignores the :internal_encoding option when the same as the external encoding
15fails:IO.for_fd sets internal encoding to nil when passed '-'
16fails:IO.for_fd sets binmode from mode string
17fails:IO.for_fd does not set binmode without being asked
18fails:IO.for_fd sets binmode from :binmode option
19fails:IO.for_fd does not set binmode from false :binmode
20fails:IO.for_fd accepts a :mode option
21fails:IO.for_fd accepts a mode argument set to nil with a valid :mode option
22fails:IO.for_fd accepts a mode argument with a :mode option set to nil
23fails:IO.for_fd raises an error if passed modes two ways
24fails:IO.for_fd raises an error if passed encodings two ways
25fails:IO.for_fd raises an error if passed binary/text mode two ways
26fails:IO.for_fd raises an error when trying to set both binmode and textmode
27fails:IO.for_fd sets external encoding to binary with binmode in mode string
28fails:IO.for_fd sets external encoding to binary with :binmode option
29fails:IO.for_fd does not use binary encoding when mode encoding is specified
30fails:IO.for_fd does not use binary encoding when :encoding option is specified
31fails:IO.for_fd does not use binary encoding when :external_encoding option is specified
32fails:IO.for_fd does not use binary encoding when :internal_encoding option is specified
33fails:IO.for_fd accepts nil options
34fails:IO.for_fd coerces mode with #to_str
35fails:IO.for_fd coerces mode with #to_int
36fails:IO.for_fd coerces mode with #to_str when passed in options
37fails:IO.for_fd coerces mode with #to_int when passed in options
38fails:IO.for_fd coerces :encoding option with #to_str
39fails:IO.for_fd coerces :external_encoding option with #to_str
40fails:IO.for_fd coerces :internal_encoding option with #to_str
41fails:IO.for_fd coerces options as third argument with #to_hash
42fails:IO.for_fd coerces options as second argument with #to_hash
43fails:IO.for_fd raises ArgumentError if not passed a hash or nil for options
44fails:IO.for_fd raises TypeError if passed a hash for mode and nil for options
45fails:IO.for_fd accepts an :autoclose option
46fails:IO.for_fd accepts any truthy option :autoclose
47fails:IO.for_fd raises ArgumentError if passed an empty mode string