[1.9] IO.try_convert is not implemented ---------------------------------------
Key: JRUBY-4652 URL: http://jira.codehaus.org/browse/JRUBY-4652 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, Ruby 1.9, RubySpec Affects Versions: JRuby 1.4 Reporter: Vladimir Sizikov {noformat} mspec ci -t j -T --1.9 core\io\try_convert_spec.rb jruby 1.5.0.dev (ruby 1.9.2dev trunk 24787) (2010-03-13 3336859) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java] EEEEFF 1) IO.try_convert returns the passed IO object ERROR NoMethodError: undefined method `try_convert' for IO:Class D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:17 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 2) IO.try_convert does not call #to_io on an IO instance ERROR NoMethodError: undefined method `try_convert' for IO:Class D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:22 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 3) IO.try_convert calls #to_io to coerce an object ERROR NoMethodError: undefined method `try_convert' for IO:Class D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:28 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 4) An exception occurred during: Mock.verify_count IO.try_convert calls #to_io to coerce an object FAILED Mock 'io' expected to receive 'to_io' exactly 1 times but received it 0 times D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 5) IO.try_convert returns nil when the passed object does not respond to #to_io ERROR NoMethodError: undefined method `try_convert' for IO:Class D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:32 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 6) IO.try_convert raises a TypeError if the object does not return an IO from #to_io FAILED Expected TypeError but got NoMethodError (undefined method `try_convert' for IO:Class) D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:38 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 7) An exception occurred during: Mock.verify_count IO.try_convert raises a TypeError if the object does not return an IO from #to_io FAILED Mock 'io' expected to receive 'to_io' exactly 1 times but received it 0 times D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 8) IO.try_convert propagates an exception raised by #to_io FAILED Expected TypeError but got NoMethodError (undefined method `try_convert' for IO:Class) D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:44 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 9) An exception occurred during: Mock.verify_count IO.try_convert propagates an exception raised by #to_io FAILED Mock 'io' expected to receive 'to_io' exactly 1 times but received it 0 times D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:4 D:/work/jruby-dev/rubyspec.git/core/io/try_convert_spec.rb:56:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-ci:8 Finished in 0.056000 seconds 1 file, 6 examples, 6 expectations, 5 failures, 4 errors {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email