<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../../shared/enumerator/each'
 
-ruby_version_is &quot;1.9&quot; do
+ruby_version_is &quot;1.8.7&quot; do
   describe &quot;Enumerator#each&quot; do
     it_behaves_like(:enum_each, :each)
   end</diff>
      <filename>core/enumerator/each_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do
+ruby_version_is &quot;1.8.7&quot; do
   require File.dirname(__FILE__) + '/../../shared/enumerator/with_index'
 
   describe &quot;Enumerator#each_with_index&quot; do</diff>
      <filename>core/enumerator/each_with_index_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do
+ruby_version_is &quot;1.8.7&quot; do
   require File.dirname(__FILE__) + '/../../shared/enumerator/enum_for'
   
   describe &quot;#enum_for&quot; do</diff>
      <filename>core/enumerator/enum_for_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,24 +1,26 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do
+ruby_version_is &quot;1.8.7&quot; do
   require File.dirname(__FILE__) + '/../../shared/enumerator/new'
 
   describe &quot;Enumerator.new&quot; do
     it_behaves_like(:enum_new, :new)
 
-    it &quot;accepts a block&quot; do
-      enum = enumerator_class.new do |yielder|
-        yielder.yield 3
-        yielder.yield 2
-        yielder.yield 1
+    ruby_version_is &quot;1.9&quot; do
+      it &quot;accepts a block&quot; do
+        enum = enumerator_class.new do |yielder|
+          yielder.yield 3
+          yielder.yield 2
+          yielder.yield 1
+        end
+        enum.should be_kind_of(enumerator_class)
+        enum.to_a.should == [3,2,1]
       end
-      enum.should be_kind_of(enumerator_class)
-      enum.to_a.should == [3,2,1]
-    end
 
-    it &quot;ignores block if arg given&quot; do
-      enum = enumerator_class.new([1,2,3]){|y| y.yield 4}
-      enum.to_a.should == [1,2,3]
+      it &quot;ignores block if arg given&quot; do
+        enum = enumerator_class.new([1,2,3]){|y| y.yield 4}
+        enum.to_a.should == [1,2,3]
+      end
     end
   end
 end</diff>
      <filename>core/enumerator/new_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do  
+# TODO: enable for 1.8.7 as well
+ruby_version_is &quot;1.9&quot; do
   require File.dirname(__FILE__) + '/../../shared/enumerator/next'
   
   describe &quot;Enumerator#next&quot; do</diff>
      <filename>core/enumerator/next_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do  
+ruby_version_is &quot;1.9&quot; do
   describe &quot;Enumerator#peek&quot; do
     before(:each) do
       @e = (1..5).to_a.to_enum</diff>
      <filename>core/enumerator/peek_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,22 +1,24 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do  
+ruby_version_is &quot;1.8.7&quot; do
   require File.dirname(__FILE__) + '/../../shared/enumerator/rewind'
 
   describe &quot;Enumerator#rewind&quot; do
     it_behaves_like(:enum_rewind, :rewind)
 
-    it &quot;calls the enclosed object's rewind method if one exists&quot; do
-      obj = mock('rewinder')
-      enum = enumerator_class.new(obj, :enum) 
-      obj.should_receive(:rewind)
-      enum.rewind
-    end
+    ruby_version_is &quot;1.9&quot; do
+      it &quot;calls the enclosed object's rewind method if one exists&quot; do
+        obj = mock('rewinder')
+        enum = enumerator_class.new(obj, :enum)
+        obj.should_receive(:rewind)
+        enum.rewind
+      end
 
-    it &quot;does nothing if the object doesn't have a #rewind method&quot; do
-      obj = mock('rewinder')
-      enum = enumerator_class.new(obj) 
-      lambda { enum.rewind.should == enum }.should_not raise_error
+      it &quot;does nothing if the object doesn't have a #rewind method&quot; do
+        obj = mock('rewinder')
+        enum = enumerator_class.new(obj)
+        lambda { enum.rewind.should == enum }.should_not raise_error
+      end
     end
-  end    
+  end
 end</diff>
      <filename>core/enumerator/rewind_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do
+ruby_version_is &quot;1.8.7&quot; do
   require File.dirname(__FILE__) + '/../../shared/enumerator/enum_for'
 
   describe &quot;#to_enum&quot; do</diff>
      <filename>core/enumerator/to_enum_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,46 +1,48 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
-ruby_version_is &quot;1.9&quot; do
+ruby_version_is &quot;1.8.7&quot; do
   require File.dirname(__FILE__) + '/../../shared/enumerator/with_index'
 
   describe &quot;Enumerator#with_index&quot; do
     it_behaves_like(:enum_with_index, :with_index)
 
-    it &quot;accepts an optional argument when given a block&quot; do
-      lambda do
-        @enum.with_index(1) { |f| f}
-      end.should_not raise_error(ArgumentError)
-    end
-
-    it &quot;accepts an optional argument when not given a block&quot; do
-      lambda do
-        @enum.with_index(1)
-      end.should_not raise_error(ArgumentError)
-    end
-
-    it &quot;numbers indices from the given index when given an offset but no block&quot; do
-      @enum.with_index(1).to_a.should == [[1,1],[2,2],[3,3],[4,4]]
-    end
-
-    it &quot;numbers indices from the given index when given an offset and block&quot; do
-      acc = []
-      @enum.with_index(1) {|e,i| acc &lt;&lt; [e,i] }
-      acc.should == [[1,1],[2,2],[3,3],[4,4]]
-    end
-
-    it &quot;raises a TypeError when the argument cannot be converted to numeric&quot; do
-      lambda do
-        @enum.with_index('1') {|i| i}
-      end.should raise_error(TypeError)
-    end
-
-    it &quot;converts non-numeric arguments to Integer via #to_int&quot; do
-      (o = mock('1')).should_receive(:to_int).and_return(1)
-      @enum.with_index(o).to_a.should == [[1,1],[2,2],[3,3],[4,4]]
-    end
-
-    it &quot;coerces the given numeric argument to an Integer&quot; do
-      @enum.with_index(1.678).to_a.should == [[1,1],[2,2],[3,3],[4,4]]
+    ruby_version_is &quot;1.9&quot; do
+      it &quot;accepts an optional argument when given a block&quot; do
+        lambda do
+          @enum.with_index(1) { |f| f}
+        end.should_not raise_error(ArgumentError)
+      end
+
+      it &quot;accepts an optional argument when not given a block&quot; do
+        lambda do
+          @enum.with_index(1)
+        end.should_not raise_error(ArgumentError)
+      end
+
+      it &quot;numbers indices from the given index when given an offset but no block&quot; do
+        @enum.with_index(1).to_a.should == [[1,1],[2,2],[3,3],[4,4]]
+      end
+
+      it &quot;numbers indices from the given index when given an offset and block&quot; do
+        acc = []
+        @enum.with_index(1) {|e,i| acc &lt;&lt; [e,i] }
+        acc.should == [[1,1],[2,2],[3,3],[4,4]]
+      end
+
+      it &quot;raises a TypeError when the argument cannot be converted to numeric&quot; do
+        lambda do
+          @enum.with_index('1') {|i| i}
+        end.should raise_error(TypeError)
+      end
+
+      it &quot;converts non-numeric arguments to Integer via #to_int&quot; do
+        (o = mock('1')).should_receive(:to_int).and_return(1)
+        @enum.with_index(o).to_a.should == [[1,1],[2,2],[3,3],[4,4]]
+      end
+
+      it &quot;coerces the given numeric argument to an Integer&quot; do
+        @enum.with_index(1.678).to_a.should == [[1,1],[2,2],[3,3],[4,4]]
+      end
     end
   end
 end</diff>
      <filename>core/enumerator/with_index_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1c48eb3aab34adf3bbd2e207be33c141e2ea8fc7</id>
    </parent>
  </parents>
  <author>
    <name>Vladimir Sizikov</name>
    <email>vsizikov@gmail.com</email>
  </author>
  <url>http://github.com/rubyspec/rubyspec/commit/2a4c94e1aa320fdb3e085550d9048e03ca800a6a</url>
  <id>2a4c94e1aa320fdb3e085550d9048e03ca800a6a</id>
  <committed-date>2009-11-08T13:30:46-08:00</committed-date>
  <authored-date>2009-11-08T13:30:46-08:00</authored-date>
  <message>Enabled enumerator specs not only for 1.9, but for 1.8.7 as well.</message>
  <tree>4c4772b660f80340e89e96e3ea36a58dc26efd93</tree>
  <committer>
    <name>Vladimir Sizikov</name>
    <email>vsizikov@gmail.com</email>
  </committer>
</commit>
