StringIO spec failures: reopen should truncate actual string, reset mode flags
------------------------------------------------------------------------------
Key: JRUBY-1832
URL: http://jira.codehaus.org/browse/JRUBY-1832
Project: JRuby
Issue Type: Bug
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.1b2
Fix coming.
{noformat}
1)
StringIO#reopen should reopen a stream when given a String argument FAILED
Expected "goodbyex" to equal "xoodbye":
./mspec/expectations.rb:10:in `fail_with'
./mspec/matchers/base.rb:8:in `=='
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:626:in
`=='
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:622:in
`call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:616:in
`describe'
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:616:in
`load'
tmp/last_mspec.rb:15:in `load'
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10:in `each'
2)
StringIO#reopen should reopen and truncate when reopened in write mode FAILED
Expected "goodbye" to equal "":
./mspec/expectations.rb:10:in `fail_with'
./mspec/matchers/base.rb:8:in `=='
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:638:in
`=='
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:636:in
`call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:616:in
`describe'
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:616:in
`load'
tmp/last_mspec.rb:15:in `load'
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10:in `each'
3)
StringIO#reopen should truncate the given string, not a copy FAILED
Expected "goodbye" to equal "":
./mspec/expectations.rb:10:in `fail_with'
./mspec/matchers/base.rb:8:in `=='
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:646:in
`=='
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:643:in
`call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:616:in
`describe'
/Users/headius/NetBeansProjects/rubinius/./spec/library/stringio_spec.rb:616:in
`load'
tmp/last_mspec.rb:15:in `load'
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10:in `each'
{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