<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,7 @@
 == Maintenance
 
 * enhancements
+
   * allow registering example groups with a path-like key (Pat Maddox)
 
 === Version 1.1.12 / 2009-01-11</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,17 +2,14 @@ module Spec
   module Matchers
     def has(sym, *args) # :nodoc:
       simple_matcher do |actual, matcher|
-        matcher.failure_message          = &quot;expected ##{predicate(sym)}(#{args[0].inspect}) to return true, got false&quot;
-        matcher.negative_failure_message = &quot;expected ##{predicate(sym)}(#{args[0].inspect}) to return false, got true&quot;
+        def matcher.predicate(sym)
+          &quot;#{sym.to_s.sub(&quot;have_&quot;,&quot;has_&quot;)}?&quot;.to_sym
+        end
+        matcher.failure_message          = &quot;expected ##{matcher.predicate(sym)}(#{args[0].inspect}) to return true, got false&quot;
+        matcher.negative_failure_message = &quot;expected ##{matcher.predicate(sym)}(#{args[0].inspect}) to return false, got true&quot;
         matcher.description              = &quot;have key #{args[0].inspect}&quot;
-        actual.__send__(predicate(sym), *args)
+        actual.__send__(matcher.predicate(sym), *args)
       end
     end
-    
-  private
-    def predicate(sym)
-      &quot;#{sym.to_s.sub(&quot;have_&quot;,&quot;has_&quot;)}?&quot;.to_sym
-    end
-
   end
 end</diff>
      <filename>lib/spec/matchers/has.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>84fbaae3694462178a5b97f6150f0432c8132ea6</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </author>
  <url>http://github.com/wilson/rspec/commit/88a81ae79abfb229acc82889feac4c28a6c8e111</url>
  <id>88a81ae79abfb229acc82889feac4c28a6c8e111</id>
  <committed-date>2009-01-13T06:19:02-08:00</committed-date>
  <authored-date>2009-01-13T06:19:02-08:00</authored-date>
  <message>refine scope for predicate method used by #have matcher</message>
  <tree>92c20f9e56c5a6ebff7afb946678a40eb97ebc2d</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
