<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/ruby1.9.compatibility_tests.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-
+# This is here because OptionsParser is SO slow.
 def extract_path(argv)
   if argv[1].nil?
     if argv[0] =~ /-a/
@@ -22,6 +22,8 @@ def all?
   ARGV.join =~ /-a/
 end
 
+
+
 def comment?(line)
   line =~ /^\s*#/
 end</diff>
      <filename>countloc.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,6 @@ $:.unshift(File.dirname(__FILE__)) unless
 
 # Matchy should work with either test/unit 
 # or minitest
-
 module Matchy
   def self.minitest?
     # This needs to be better.
@@ -11,8 +10,7 @@ module Matchy
     # suite of MiniTest Tests?
     # Rails for example defines MiniTest, so only check for
     # defined?(MiniTest) would be malicious
-    defined?(MiniTest) &amp;&amp; 
-      defined?(MiniTest::Assertions) &amp;&amp; 
+    defined?(MiniTest) &amp;&amp; defined?(MiniTest::Assertions) &amp;&amp; 
         (!defined?(Test::Unit::TestCase) || !(Test::Unit::TestCase &lt; MiniTest::Assertions))
   end
   def self.assertions_module
@@ -39,14 +37,14 @@ require 'matchy/built_in/operator_expectations'
 require 'matchy/built_in/change_expectations'
 
 
-# Evil hack.
+# Hack of Evil.
 # Track the current testcase and 
 # provide it to the operator matchers.
 Matchy.test_case_class.class_eval do
-  alias_method :old_run_method_aliased_by_matchy_300, :run
+  alias_method :old_run_method_aliased_by_matchy, :run
   def run(whatever, *args, &amp;block)
     $current_test_case = self
-    old_run_method_aliased_by_matchy_300(whatever, *args, &amp;block)
+    old_run_method_aliased_by_matchy(whatever, *args, &amp;block)
   end
 end
 </diff>
      <filename>lib/matchy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ module Matchy
           comparison = after != before
           if list = matcher.msgs
             comparison = case list[0].name
-              # todo provide meaningful messages
+              # todo: provide meaningful messages
             when :by          then (after == before + list[0].args[0] || after == before - list[0].args[0])
             when :by_at_least then (after &gt;= before + list[0].args[0] || after &lt;= before - list[0].args[0])
             when :by_at_most  then (after &lt;= before + list[0].args[0] &amp;&amp; after &gt;= before - list[0].args[0])</diff>
      <filename>lib/matchy/built_in/change_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,26 +11,24 @@ module Matchy
       #
       def raise_error(*obj)
         build_matcher(:raise_error, obj) do |receiver, matcher, args|
-          @receiver = receiver
-          expected = args[0] || StandardError
+          expected = args[0] || Exception
           raised = false
           error = nil
           begin
-            @receiver.call
-          rescue StandardError =&gt; e
+            receiver.call
+          rescue Exception =&gt; e
             raised = true
             error = e
           end
-          
           if expected.respond_to?(:ancestors) &amp;&amp; expected.ancestors.include?(Exception)
-            matcher.positive_msg = &quot;Expected #{@receiver.inspect} to raise #{expected.name}, &quot; + 
+            matcher.positive_msg = &quot;Expected #{receiver.inspect} to raise #{expected.name}, &quot; + 
               (error ? &quot;but #{error.class.name} was raised instead.&quot; : &quot;but none was raised.&quot;)
-            matcher.negative_msg = &quot;Expected #{@receiver.inspect} to not raise #{expected.name}.&quot;
+            matcher.negative_msg = &quot;Expected #{receiver.inspect} to not raise #{expected.name}.&quot;
             comparison = (raised &amp;&amp; error.class.ancestors.include?(expected))
           else
             message = error ? error.message : &quot;none&quot;
-            matcher.positive_msg = &quot;Expected #{@receiver.inspect} to raise error with message matching '#{expected}', but '#{message}' was raised.&quot;
-            matcher.negative_msg = &quot;Expected #{@receiver.inspect} to raise error with message not matching '#{expected}', but '#{message}' was raised.&quot;
+            matcher.positive_msg = &quot;Expected #{receiver.inspect} to raise error with message matching '#{expected}', but '#{message}' was raised.&quot;
+            matcher.negative_msg = &quot;Expected #{receiver.inspect} to raise error with message not matching '#{expected}', but '#{message}' was raised.&quot;
             comparison = (raised &amp;&amp; (expected.kind_of?(Regexp) ? ((error.message =~ expected) ? true : false) : expected == error.message))
           end
           comparison</diff>
      <filename>lib/matchy/built_in/error_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,16 +18,6 @@ module Matchy
         end
       end
       
-      # Checks if the given object is kind_of? the expected class
-      #
-      # ==== Examples
-      # 
-      #   &quot;hello&quot;.should be_kind_of(String)
-      #   3.should be_kind_of(Fixnum)
-      def be_kind_of(*klass)
-        ask_for(:kind_of, :with_arg =&gt; klass)
-      end
-      
       # Checks if the given object is within a given object and delta.
       #
       # ==== Examples
@@ -122,7 +112,7 @@ module Matchy
       end
 
       alias_method :old_missing, :method_missing
-      # ==be_*something*
+      # ==be_*something(*args)
       #
       # ===This method_missing acts as a matcher builder. 
       # If a call to be_xyz() reaches this method_missing (say: obj.should be_xyz), 
@@ -131,15 +121,12 @@ module Matchy
       # ==== Examples
       #
       #   nil.should be_nil
+      #   17.should be_kind_of(Fixnum)
       #   obj.something? #=&gt; true
       #   obj.should be_something
       def method_missing(name, *args, &amp;block)
         if (name.to_s =~ /^be_(.+)/)
-          build_matcher(name, args) do |receiver, matcher, args|
-            matcher.positive_msg = &quot;Expected #{receiver.inspect} to return true for #{$1}?.&quot;
-            matcher.negative_msg = &quot;Expected #{receiver.inspect} to return false for #{$1}?.&quot;
-            receiver.send(($1 + &quot;?&quot;).to_sym)
-          end
+          ask_for($1, :with_arg =&gt; args)
         else
           old_missing(name, *args, &amp;block)
         end
@@ -147,11 +134,10 @@ module Matchy
       
     private
       def ask_for(sym, option={})
-        obj = option[:with_arg] || []
-        build_matcher(sym, obj) do |receiver, matcher, args|
+        build_matcher(sym, (option[:with_arg] || [])) do |receiver, matcher, args|
           expected, meth = args[0], (sym.to_s + &quot;?&quot; ).to_sym
-          matcher.positive_msg = &quot;Expected #{receiver.inspect} to #{sym} #{(expected &amp;&amp; expected.inspect) || ''}.&quot;
-          matcher.negative_msg = &quot;Expected #{receiver.inspect} to not #{sym} #{(expected &amp;&amp; expected.inspect) || ''}.&quot;
+          matcher.positive_msg = &quot;Expected #{receiver.inspect} to return true for #{sym}?, with '#{(expected &amp;&amp; expected.inspect) || 'no args'}'.&quot;
+          matcher.negative_msg = &quot;Expected #{receiver.inspect} to not return true for #{sym}?, with '#{(expected &amp;&amp; expected.inspect) || 'no args'}'.&quot;
           expected ? receiver.send(meth, expected) : receiver.send(meth)
         end
       end</diff>
      <filename>lib/matchy/built_in/truth_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module Matchy
   module VERSION #:nodoc:
     MAJOR = 0
-    MINOR = 1
+    MINOR = 3
     TINY  = 0
 
     STRING = [MAJOR, MINOR, TINY].join('.')</diff>
      <filename>lib/matchy/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 Gem::Specification.new do |s|
-  s.name     = &quot;matchy300&quot;
+  s.name     = &quot;matchy&quot;
   s.version  = &quot;0.2.0&quot;
   s.date     = &quot;2009-02-08&quot;
   s.summary  = &quot;RSpec-esque matchers for use in Test::Unit&quot;</diff>
      <filename>matchy.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,20 @@ load File.dirname(__FILE__) + '/../lib/matchy.rb'
 MiniTest::Unit.autorun
 
 class TestAThing &lt; MiniTest::Unit::TestCase
-  def test_a_thing
+  def test_equal_equal
     1.should == 1
   end
+  
+  def test_equal_equal_fails
+    #1.should == 2 
+    lambda{ 1.should == 2 }.should raise_error
+  end
+  
+  def test_equal_equal_negative
+    1.should_not == 2
+  end
+  
+  def test_equal_equal_negative_fails
+    lambda{ 1.should_not == 1 }.should raise_error
+  end
 end
\ No newline at end of file</diff>
      <filename>test/test_minitest_compatibility.rb</filename>
    </modified>
    <modified>
      <diff>@@ -148,42 +148,42 @@ class TestTruthExpectations &lt; Test::Unit::TestCase
     obj = equal(4)
     obj.matches?(5)
     
-    obj.failure_message.should be(&quot;Expected 5 to equal 4.&quot;)
+    obj.failure_message.should be(&quot;Expected 5 to return true for equal?, with '4'.&quot;)
   end
   
   def test_equal_negative_fail_message
     obj = equal(5)
     obj.matches?(5)
     
-    obj.negative_failure_message.should be(&quot;Expected 5 to not equal 5.&quot;)
+    obj.negative_failure_message.should be(&quot;Expected 5 to not return true for equal?, with '5'.&quot;)
   end
   
   def test_eql_fail_message
     obj = eql(4)
     obj.matches?(5)
     
-    obj.failure_message.should be(&quot;Expected 5 to eql 4.&quot;)
+    obj.failure_message.should be(&quot;Expected 5 to return true for eql?, with '4'.&quot;)
   end
   
   def test_eql_negative_fail_message_for_eql
     obj = eql(5)
     obj.matches?(5)
     
-    obj.negative_failure_message.should be(&quot;Expected 5 to not eql 5.&quot;)
+    obj.negative_failure_message.should be(&quot;Expected 5 to not return true for eql?, with '5'.&quot;)
   end
   
   def test_exist_fail_message
     obj = exist
     obj.matches?(Exister.new(false))
     
-    obj.failure_message.should =~ /Expected #&lt;(.*)&gt; to exist./
+    obj.failure_message.should =~ /Expected #&lt;(.*)&gt; to return true for exist?./
   end
   
   def test_exist_negative_fail_message
     obj = exist
     obj.matches?(Exister.new(true))
     
-    obj.negative_failure_message.should =~ /Expected #&lt;(.*)&gt; to not exist./
+    obj.negative_failure_message.should =~ /Expected #&lt;(.*)&gt; to not return true for exist?./
   end
   
   def test_be_close_fail_message
@@ -268,6 +268,7 @@ class TestTruthExpectations &lt; Test::Unit::TestCase
     }.should raise_error(Test::Unit::AssertionFailedError)
   end
   
+  # be_something
   def test_positive_be_something_method_missing_pass
     def @obj.something?
       true
@@ -304,7 +305,7 @@ class TestTruthExpectations &lt; Test::Unit::TestCase
     matcher_obj = be_something
     obj.should matcher_obj
     
-    matcher_obj.failure_message.should be(&quot;Expected \&quot;foo\&quot; to return true for something?.&quot;)
+    matcher_obj.failure_message.should be(&quot;Expected \&quot;foo\&quot; to return true for something?, with 'no args'.&quot;)
   end
   
   def test_be_something_method_missing_negative_fail_message
@@ -315,7 +316,58 @@ class TestTruthExpectations &lt; Test::Unit::TestCase
     matcher_obj = be_something
     obj.should_not matcher_obj
     
-    matcher_obj.negative_failure_message.should be(&quot;Expected \&quot;foo\&quot; to return false for something?.&quot;)
+    matcher_obj.negative_failure_message.should =~ /Expected \&quot;foo\&quot; to not return true for something?/
+  end
+  
+  # be_something(arg)
+  def test_positive_be_something_with_arg_method_missing_pass
+    def @obj.something?(arg)
+      true
+    end
+    @obj.should be_something(1)
+  end
+  
+  def test_positive_be_something_with_arg_method_missing_fails
+    def @obj.something?(arg)
+      false
+    end
+    lambda {@obj.should be_something(1)}.should raise_error(Test::Unit::AssertionFailedError)
+  end
+  
+  def test_negative_be_something_method_missing_pass
+    def @obj.something?(arg)
+      false
+    end
+    @obj.should_not be_something(1)
+  end
+  
+  def test_negative_be_something_method_missing_fails
+    def @obj.something?(arg)
+      true
+    end
+    lambda {@obj.should_not be_something(1)}.should raise_error(Test::Unit::AssertionFailedError)
+  end
+  
+  def test_be_something_method_missing_fail_message
+    obj = &quot;foo&quot;
+    def obj.something?(arg)
+      true
+    end
+    matcher_obj = be_something(1)
+    obj.should matcher_obj
+    
+    matcher_obj.failure_message.should be(&quot;Expected \&quot;foo\&quot; to return true for something?, with '1'.&quot;)
+  end
+  
+  def test_be_something_method_missing_negative_fail_message
+    obj = &quot;foo&quot;
+    def obj.something?(arg)
+      false
+    end
+    matcher_obj = be_something(1)
+    obj.should_not matcher_obj
+    
+    matcher_obj.negative_failure_message.should be(&quot;Expected \&quot;foo\&quot; to not return true for something?, with '1'.&quot;)
   end
 
 end</diff>
      <filename>test/test_truth_expectations.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>90a5ba0f7a4e3d9f71fd0a35bd4c2454695c05d7</id>
    </parent>
  </parents>
  <author>
    <name>Matthias Hennemeyer</name>
    <email>mhennemeyer@gmail.com</email>
  </author>
  <url>http://github.com/jeremymcanally/matchy/commit/b5fbf56d9c77cc9f229b4bbbd7b97cedb4736364</url>
  <id>b5fbf56d9c77cc9f229b4bbbd7b97cedb4736364</id>
  <committed-date>2009-02-11T07:48:32-08:00</committed-date>
  <authored-date>2009-02-11T05:24:27-08:00</authored-date>
  <message>Added 1.9 compatibility suite. New Release.

Signed-off-by: Jeremy McAnally &lt;jeremymcanally@gmail.com&gt;</message>
  <tree>eb8d88ca41b0c0807f2598c839f38b2c9e985427</tree>
  <committer>
    <name>Jeremy McAnally</name>
    <email>jeremymcanally@gmail.com</email>
  </committer>
</commit>
