fastness ➞ bin/mspec run spec/ruby/1.8/library/stringio/each_byte_spec.rb                       ~/code/rubinius
rubinius 0.9.0 (ruby 1.8.6 compatible) (94ea4278e) (07/10/2008) [i686-apple-darwin9.4.0]
.FE...

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

            Object#__script__ {} at ./spec/ruby/1.8/library/stringio/shared/each_byte.rb:15
    Kernel(Object)#instance_eval at kernel/core/eval.rb:103
                       Proc#call at kernel/core/proc.rb:76
       Enumerable(Array)#all? {} at kernel/core/enumerable.rb:462
                      Array#each at kernel/core/array.rb:572
          Enumerable(Array)#all? at kernel/core/enumerable.rb:462
                      Array#each at kernel/core/array.rb:572
               Object#__script__ at ./spec/ruby/1.8/library/stringio/each_byte_spec.rb:9
        CompiledMethod#as_script at kernel/core/compiled_method.rb:407
             Compile.single_load at kernel/core/compile.rb:248
         Compile.unified_load {} at kernel/core/compile.rb:161
                      Array#each at kernel/core/array.rb:572
            Compile.unified_load at kernel/core/compile.rb:127
                     Kernel.load at kernel/core/compile.rb:408
    Kernel(Object)#instance_eval at kernel/core/eval.rb:103
                      Array#each at kernel/core/array.rb:572
        CompiledMethod#as_script at kernel/core/compiled_method.rb:407
             Compile.single_load at kernel/core/compile.rb:248
     Compile.load_from_extension at kernel/core/compile.rb:326
               Object#__script__ at kernel/loader.rb:221

2)
StringIO#each_byte does not yield if the current position is out of bounds ERROR
NoMethodError: No method 'each_byte' on an instance of NilClass.
    Kernel(NilClass)#each_byte (method_missing_cv) at kernel/core/kernel.rb:652
                          StringIO#each_byte at /Users/wilson/code/rubinius/lib/stringio.rb:118
                        Object#__script__ {} at ./spec/ruby/1.8/library/stringio/shared/each_byte.rb:21
                Kernel(Object)#instance_eval at kernel/core/eval.rb:103
                                   Proc#call at kernel/core/proc.rb:76
                   Enumerable(Array)#all? {} at kernel/core/enumerable.rb:462
                                  Array#each at kernel/core/array.rb:572
                      Enumerable(Array)#all? at kernel/core/enumerable.rb:462
                                  Array#each at kernel/core/array.rb:572
                           Object#__script__ at ./spec/ruby/1.8/library/stringio/each_byte_spec.rb:9
                    CompiledMethod#as_script at kernel/core/compiled_method.rb:407
                         Compile.single_load at kernel/core/compile.rb:248
                     Compile.unified_load {} at kernel/core/compile.rb:161
                                  Array#each at kernel/core/array.rb:572
                        Compile.unified_load at kernel/core/compile.rb:127
                                 Kernel.load at kernel/core/compile.rb:408
                Kernel(Object)#instance_eval at kernel/core/eval.rb:103
                                  Array#each at kernel/core/array.rb:572
                    CompiledMethod#as_script at kernel/core/compiled_method.rb:407
                         Compile.single_load at kernel/core/compile.rb:248
                 Compile.load_from_extension at kernel/core/compile.rb:326
                           Object#__script__ at kernel/loader.rb:221

Finished in 0.185415 seconds

1 file, 6 examples, 6 expectations, 1 failure, 1 error