Multiple IO#readlines rubyspec failures
---------------------------------------
Key: JRUBY-2681
URL: http://jira.codehaus.org/browse/JRUBY-2681
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.2
Environment: Latest JRuby 1.1.2+
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
Fix For: JRuby 1.1.3
New rubyspec for IO have been added recently, and Jruby fails 7 of them for
IO#readlines:
{noformat}
mspec -t j spec/ruby/1.8/core/io/readlines_spec.rb
............EE.....F...EE
1)
IO#readlines when passed [seperator] tries to convert the passed seperator to a
String using #to_str ERROR
TypeError: wrong argument type MockObject (expected String)
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:60:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:47
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
2)
IO#readlines when passed [seperator] checks whether the passed seperator
responds to #to_str ERROR
TypeError: wrong argument type MockObject (expected String)
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:60:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:47
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
3)
IO#readlines when passed [seperator] checks whether the passed seperator
responds to #to_str ERROR
ExpectationNotMetError occurred during: Mock.verify_count
Mock 'method_missing to_str' expected to receive 'respond_to?' exactly 1 times
but received it 0 times
/opt/work/mspec.git/lib/mspec/expectations/expectations.rb:10:in `fail_with'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:80:in `verify_count'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:62:in `each'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:62:in `verify_count'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:60:in `each'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:60:in `verify_count'
/opt/work/mspec.git/lib/mspec/runner/state.rb:62:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:62:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:47
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
4)
IO.readlines when passed [file_name] checks whether the passed file_name
responds to #to_str FAILED
ExpectationNotMetError occurred during: Mock.verify_count
Mock 'method_missing to_str' expected to receive 'respond_to?' exactly 1 times
but received it 2 times
/opt/work/mspec.git/lib/mspec/expectations/expectations.rb:10:in `fail_with'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:80:in `verify_count'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:62:in `each'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:62:in `verify_count'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:60:in `each'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:60:in `verify_count'
/opt/work/mspec.git/lib/mspec/runner/state.rb:62:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:62:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:136
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
5)
IO#readlines when passed [file_name, seperator] tries to convert the passed
seperator to a String using #to_str ERROR
TypeError: wrong argument type MockObject (expected String)
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:60:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:186
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
6)
IO#readlines when passed [file_name, seperator] checks whether the passed
seperator responds to #to_str ERROR
TypeError: wrong argument type MockObject (expected String)
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:60:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:186
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
7)
IO#readlines when passed [file_name, seperator] checks whether the passed
seperator responds to #to_str ERROR
ExpectationNotMetError occurred during: Mock.verify_count
Mock 'method_missing to_str' expected to receive 'respond_to?' exactly 1 times
but received it 0 times
/opt/work/mspec.git/lib/mspec/expectations/expectations.rb:10:in `fail_with'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:80:in `verify_count'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:62:in `each'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:62:in `verify_count'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:60:in `each'
/opt/work/mspec.git/lib/mspec/mocks/mock.rb:60:in `verify_count'
/opt/work/mspec.git/lib/mspec/runner/state.rb:62:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:62:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:28:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:186
/opt/work/./spec/ruby/1.8/core/io/readlines_spec.rb:49:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:124:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:49:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:43:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:35:in `process'
/opt/work/mspec.git/lib/mspec/commands/mspec-run.rb:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:8
Finished in 0.164000 seconds
1 file, 25 examples, 28 expectations, 3 failures, 4 errors
{noformat}
Will fix.
--
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