<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,6 +28,12 @@ ruby_version_is &quot;1.9&quot; do
       acc.should == [[1,1],[2,2],[3,3],[4,4]]
     end
     
+    it &quot;raises a TypeError when a non numeric argument is given&quot; do
+      lambda do
+        @enum.with_index('1') {|o, i| i}
+      end.should raise_error(TypeError)
+    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</diff>
      <filename>core/enumerator/with_index_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3eb2eeb21405cc1b26c9e652636775ad194f62d6</id>
    </parent>
  </parents>
  <author>
    <name>David Calavera</name>
    <email>david.calavera@gmail.com</email>
  </author>
  <url>http://github.com/rubyspec/rubyspec/commit/86154c2318c5ea586814aaab1d3235ddefb81dba</url>
  <id>86154c2318c5ea586814aaab1d3235ddefb81dba</id>
  <committed-date>2009-11-08T09:07:35-08:00</committed-date>
  <authored-date>2009-11-08T09:07:35-08:00</authored-date>
  <message>added secs to test Enumerator#with_index with non integer arguments</message>
  <tree>6ddc91fc59c34ff6e93bea4eb28126f08bb8f240</tree>
  <committer>
    <name>David Calavera</name>
    <email>david.calavera@gmail.com</email>
  </committer>
</commit>
