<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>core/proc/shared/equal.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,93 +1,8 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
+require File.dirname(__FILE__) + '/shared/equal'
 
 ruby_version_is &quot;1.9&quot; do
   describe &quot;Proc#eql?&quot; do
-    it &quot;returns true if self and other are the same object&quot; do
-      p = proc { :foo }
-      p.eql?(p.dup).should be_true
-      
-      p = Proc.new { :foo }
-      p.eql?(p.dup).should be_true
-
-      p = lambda { :foo }
-      p.eql?(p.dup).should be_true
-    end
-
-    it &quot;returns true if self and other are both procs with the same body&quot; do
-      body = proc { :foo }
-      p = proc &amp;body
-      p2 = proc &amp;body
-      p.eql?(p2).should be_true
-      
-      body = lambda { :foo }
-      p = proc &amp;body
-      p2 = proc &amp;body
-      p.eql?(p2).should be_true
-    end
-
-    it &quot;returns true if self and other are both lambdas with the same body&quot; do
-      body = proc { :foo }
-      p = lambda &amp;body
-      p2 = lambda &amp;body
-      p.eql?(p2).should be_true
-      
-      body = lambda { :foo }
-      p = lambda &amp;body
-      p2 = lambda &amp;body
-      p.eql?(p2).should be_true
-    end
-
-    it &quot;returns true if self and other are different kinds of procs but have the same body&quot; do
-      body = proc { :foo }
-      p = lambda &amp;body
-      p2 = proc &amp;body
-      p.eql?(p2).should be_true
-      
-      body = lambda { :foo }
-      p = proc &amp;body
-      p2 = lambda &amp;body
-      p.eql?(p2).should be_true
-    end
-
-    it &quot;returns true if the bodies of self and other are identical but represented by different objects&quot; do
-      foo = proc    { :foo }
-      foo2 = lambda { :foo }
-      p = lambda &amp;foo
-      p2 = proc  &amp;foo2
-      p.eql?(p2).should be_true
-    end
-
-    it &quot;returns false if other is not a Proc&quot; do
-      p = proc { :foo }
-      p.eql?([]).should be_false
-      
-      p = Proc.new { :foo }
-      p.eql?(Object.new).should be_false
-
-      p = lambda { :foo }
-      p.eql?(:foo).should be_false
-    end
-
-    it &quot;returns false if self and other are both procs but have different bodies&quot; do
-      p = proc { :bar }
-      p2 = proc { :foo }
-      p.eql?(p2).should be_false
-    end
-
-    it &quot;returns false if self and other are both lambdas but have different bodies&quot; do
-      p = lambda { :foo }
-      p2 = lambda { :bar }
-      p.eql?(p2).should be_false
-    end
-
-    it &quot;returns false if self and other are different kinds of procs and have different bodies&quot; do
-      p = lambda { :foo }
-      p2 = proc { :bar }
-      p.eql?(p2).should be_false
-      
-      p = proc { :foo }
-      p2 = lambda { :bar }
-      p.eql?(p2).should be_false
-    end
+    it_behaves_like(:proc_equal, :eql?)
   end
 end</diff>
      <filename>core/proc/eql_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,6 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
+require File.dirname(__FILE__) + '/shared/equal'
 
 describe &quot;Proc#==&quot; do
-  it &quot;returns true when the given value is self or a copy of self&quot; do
-    a = lambda { &quot;hello&quot; }
-    
-    a.should == a
-    a.should == a.dup
-    
-    a.should_not == lambda { &quot;hello&quot; }
-    a.should_not == Proc.new {}
-    a.should_not == nil
-  end
-end
\ No newline at end of file
+  it_behaves_like(:proc_equal, :==)
+end</diff>
      <filename>core/proc/equal_value_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5f71bc4d5bb37dafea002372d06adc2c8b1da19f</id>
    </parent>
  </parents>
  <author>
    <name>Run Paint Run Run</name>
    <email>runrun@runpaint.org</email>
  </author>
  <url>http://github.com/rubyspec/rubyspec/commit/4669e846ca99c2aa6e33b0c456f598208940f817</url>
  <id>4669e846ca99c2aa6e33b0c456f598208940f817</id>
  <committed-date>2009-07-03T15:32:55-07:00</committed-date>
  <authored-date>2009-07-03T15:32:55-07:00</authored-date>
  <message>Proc#==: Alias of #eql? on 1.9 (share specs).</message>
  <tree>e3ec895c402eedc13cf402bd27867df365e3b2dc</tree>
  <committer>
    <name>Run Paint Run Run</name>
    <email>runrun@runpaint.org</email>
  </committer>
</commit>
