Skip to content

Instantly share code, notes, and snippets.

@vvs
Created March 14, 2010 09:30
Show Gist options
  • Save vvs/331885 to your computer and use it in GitHub Desktop.
Save vvs/331885 to your computer and use it in GitHub Desktop.
mspec -t r core\io\open_spec.rb core\io\new_spec.rb -fs
ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]
IO.open
- creates an IO instance from a Fixnum argument
- calls #to_int on an object to convert to a Fixnum
- raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode (FAILED - 1)
- raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode (ERROR - 2)
- uses the external encoding specified in the mode argument (ERROR - 3)
- uses the external and the internal encoding specified in the mode argument (ERROR - 4)
- uses the external encoding specified via the :external_encoding option (ERROR - 5)
- uses the internal encoding specified via the :internal_encoding option (ERROR - 6)
- uses the colon-separated encodings specified via the :encoding option (ERROR - 7)
- ingores the :encoding option when the :external_encoding option is present (ERROR - 8)
- ingores the :encoding option when the :internal_encoding option is present (ERROR - 9)
- uses the encoding specified via the :mode option hash (ERROR - 10)
- uses the encoding specified via the :mode option hash (ERROR - 11)
- ignores the :internal_encoding option when the same as the external encoding (ERROR - 12)
IO.open
- raises an Errno::EBADF if the file descriptor is not valid (ERROR - 13)
- raises an IOError if passed a closed stream (ERROR - 14)
IO.open
- calls #close after yielding to the block (FAILED - 15)
- calls #close after yielding to the block (ERROR - 16)
- propagates an exception raised by #close that is not a StandardError (FAILED - 17)
- propagates an exception raised by #close that is not a StandardError (ERROR - 18)
- does not propagate a StandardError raised by #close (FAILED - 19)
- does not propagate a StandardError raised by #close (ERROR - 20)
IO.new
- creates an IO instance from a Fixnum argument (ERROR - 21)
- calls #to_int on an object to convert to a Fixnum (ERROR - 22)
- raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode (FAILED - 23)
- raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode (ERROR - 24)
- uses the external encoding specified in the mode argument (ERROR - 25)
- uses the external and the internal encoding specified in the mode argument (ERROR - 26)
- uses the external encoding specified via the :external_encoding option (ERROR - 27)
- uses the internal encoding specified via the :internal_encoding option (ERROR - 28)
- uses the colon-separated encodings specified via the :encoding option (ERROR - 29)
- ingores the :encoding option when the :external_encoding option is present (ERROR - 30)
- ingores the :encoding option when the :internal_encoding option is present (ERROR - 31)
- uses the encoding specified via the :mode option hash (ERROR - 32)
- uses the encoding specified via the :mode option hash (ERROR - 33)
- ignores the :internal_encoding option when the same as the external encoding (ERROR - 34)
IO.new
- raises an Errno::EBADF if the file descriptor is not valid (ERROR - 35)
- raises an IOError if passed a closed stream (ERROR - 36)
1)
IO.open raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode FAILED
Expected Errno::EINVAL but no exception was raised
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:27:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
2)
An exception occurred during: after :each
IO.open raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
3)
An exception occurred during: after :each
IO.open uses the external encoding specified in the mode argument ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
4)
An exception occurred during: after :each
IO.open uses the external and the internal encoding specified in the mode argument ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
5)
An exception occurred during: after :each
IO.open uses the external encoding specified via the :external_encoding option ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
6)
An exception occurred during: after :each
IO.open uses the internal encoding specified via the :internal_encoding option ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
7)
An exception occurred during: after :each
IO.open uses the colon-separated encodings specified via the :encoding option ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
8)
An exception occurred during: after :each
IO.open ingores the :encoding option when the :external_encoding option is present ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
9)
An exception occurred during: after :each
IO.open ingores the :encoding option when the :internal_encoding option is present ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
10)
IO.open uses the encoding specified via the :mode option hash ERROR
ArgumentError: invalid access mode W:utf-8:ISO-8859-1
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:70:in `initialize'
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:70:in `open'
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:70:in `block (3 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
11)
An exception occurred during: after :each
IO.open uses the encoding specified via the :mode option hash ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
12)
An exception occurred during: after :each
IO.open ignores the :internal_encoding option when the same as the external encoding ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:5:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
13)
An exception occurred during: after :each
IO.open raises an Errno::EBADF if the file descriptor is not valid ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:89:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:9:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
14)
An exception occurred during: after :each
IO.open raises an IOError if passed a closed stream ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:89:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:9:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
15)
IO.open calls #close after yielding to the block FAILED
Expected nil
to equal :called
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:37:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:18:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
16)
An exception occurred during: after :each
IO.open calls #close after yielding to the block ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_open.txt
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:26:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:18:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
17)
IO.open propagates an exception raised by #close that is not a StandardError FAILED
Expected Exception but no exception was raised
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:41:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:18:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
18)
An exception occurred during: after :each
IO.open propagates an exception raised by #close that is not a StandardError ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_open.txt
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:26:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:18:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
19)
IO.open does not propagate a StandardError raised by #close FAILED
Expected nil
to equal :called
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:61:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:18:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
20)
An exception occurred during: after :each
IO.open does not propagate a StandardError raised by #close ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_open.txt
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:26:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/open_spec.rb:18:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
21)
An exception occurred during: after :each
IO.new creates an IO instance from a Fixnum argument ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
22)
An exception occurred during: after :each
IO.new calls #to_int on an object to convert to a Fixnum ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
23)
IO.new raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode FAILED
Expected Errno::EINVAL but no exception was raised
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:27:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
24)
An exception occurred during: after :each
IO.new raises an Errno::EINVAL if the new mode is not compatible with the descriptor's current mode ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
25)
An exception occurred during: after :each
IO.new uses the external encoding specified in the mode argument ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
26)
An exception occurred during: after :each
IO.new uses the external and the internal encoding specified in the mode argument ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
27)
An exception occurred during: after :each
IO.new uses the external encoding specified via the :external_encoding option ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
28)
An exception occurred during: after :each
IO.new uses the internal encoding specified via the :internal_encoding option ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
29)
An exception occurred during: after :each
IO.new uses the colon-separated encodings specified via the :encoding option ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
30)
An exception occurred during: after :each
IO.new ingores the :encoding option when the :external_encoding option is present ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
31)
An exception occurred during: after :each
IO.new ingores the :encoding option when the :internal_encoding option is present ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
32)
IO.new uses the encoding specified via the :mode option hash ERROR
ArgumentError: invalid access mode W:utf-8:ISO-8859-1
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:70:in `initialize'
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:70:in `new'
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:70:in `block (3 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
33)
An exception occurred during: after :each
IO.new uses the encoding specified via the :mode option hash ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
34)
An exception occurred during: after :each
IO.new ignores the :internal_encoding option when the same as the external encoding ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:11:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:4:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
35)
An exception occurred during: after :each
IO.new raises an Errno::EBADF if the file descriptor is not valid ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:89:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:8:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
36)
An exception occurred during: after :each
IO.new raises an IOError if passed a closed stream ERROR
Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/io_new.txt
D:/work/jruby-dev/rubyspec.git/core/io/shared/new.rb:89:in `block (2 levels) in <top (required)>'
D:/work/jruby-dev/rubyspec.git/core/io/new_spec.rb:8:in `<top (required)>'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8:in `<main>'
Finished in 0.051003 seconds
2 files, 31 examples, 38 expectations, 5 failures, 31 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment