StringIO#each_byte doesn't update pos, fails new Rubyspecs
----------------------------------------------------------

                 Key: JRUBY-2733
                 URL: http://jira.codehaus.org/browse/JRUBY-2733
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.2
         Environment: jruby 1.1.3-dev (ruby 1.8.6 patchlevel 114) (2008-07-02 
rev 7072) [i386-java]

            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1.3


{noformat}
mspec -t j 1.8/library/stringio/
...........................F...............................................................................................................................................................................................................................................................................................

1)
StringIO#each_byte updates the position before each yield FAILED
Expected [0, 0, 0]
 to equal [1, 2, 3]

/opt/work/mspec.git/lib/mspec/expectations/expectations.rb:10:in `fail_with'
/opt/work/mspec.git/lib/mspec/matchers/base.rb:9:in `=='
/opt/work/rubyspec.git/./1.8/library/stringio/shared/each_byte.rb:16
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:130:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:130: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:27:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/rubyspec.git/./1.8/library/stringio/shared/each_byte.rb:2
{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


Reply via email to