COMMIT added specs for IO.gets with an integer as parameter to limit the outputs's size http://github.com/rubyspec/rubyspec/commit/b12220d7cc076a1fd9ed23811d2e169546e73b8e COMMIT Transfer some jruby unit tests into io http://github.com/rubyspec/rubyspec/commit/26acc58922e70eafdc56bc658d5379ec99962403 --- 20090914T075816 +++ 20090915T075827 @@ -1,21781 +1,21782 @@ - takes an Integer or #to_int argument as the descriptor to open - associates new IO with the old descriptor so each IO directly affects the other - raises TypeError if not given an Integer or #to_int +- raises ArgumentError if not given any arguments - raises EBADF if the file descriptor given is not a valid and open one - raises EINVAL if mode is not compatible with the descriptor's current mode (FAILED - ) - raises IOError on closed stream @@ -21788,6 +21789,7 @@ IO::foreach - updates $. with each yield - raises TypeError if the first parameter is nil +- raises Errno::ENOENT on invalid_file_name - calls #to_path on non-String arguments - returns an Enumerator when called without a block @@ -21821,6 +21823,8 @@ - raises IOError on closed stream - fails on cloned opened streams - accepts a separator +- accepts an integer as first parameter to limit the output's size +- accepts an integer as second parameter to limit the output's size /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/io/initialize_copy_spec.rb IO#initialize_copy @@ -21886,6 +21890,7 @@ - takes an Integer or #to_int argument as the descriptor to open - associates new IO with the old descriptor so each IO directly affects the other - raises TypeError if not given an Integer or #to_int +- raises ArgumentError if not given any arguments - raises EBADF if the file descriptor given is not a valid and open one - raises EINVAL if mode is not compatible with the descriptor's current mode (FAILED - ) - raises IOError on closed stream @@ -21900,6 +21905,7 @@ - takes an Integer or #to_int argument as the descriptor to open - associates new IO with the old descriptor so each IO directly affects the other - raises TypeError if not given an Integer or #to_int +- raises ArgumentError if not given any arguments - raises EBADF if the file descriptor given is not a valid and open one - raises EINVAL if mode is not compatible with the descriptor's current mode (FAILED - ) - raises IOError on closed stream @@ -22046,6 +22052,7 @@ - is modified by the cursor position - raises EOFError on end of stream - raises IOError on closed stream +- assigns the returned line to $_ /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/io/readlines_spec.rb IO#readlines when passed no arguments