<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,3 +5,4 @@ tmtags
 pkg
 doc
 email.txt
+*.swp</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@ module Spec
           &quot;expected not to have text #{expected.inspect}&quot;
         end
         
-        def to_s
+        def description
           &quot;have text #{expected.inspect}&quot;
         end
       </diff>
      <filename>lib/spec/rails/matchers/have_text.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ module Spec
           &quot;expected not to include text #{expected.inspect}&quot;
         end
 
-        def to_s
+        def description
           &quot;include text #{expected.inspect}&quot;
         end
 
@@ -51,4 +51,4 @@ module Spec
 
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/spec/rails/matchers/include_text.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,17 +2,25 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
 
 describe &quot;have_text&quot; do
   
+
+  it &quot;should have a helpful description&quot; do
+    matcher = have_text(&quot;foo bar&quot;)
+    matcher.description.should == 'have text &quot;foo bar&quot;'
+  end
+
   describe &quot;where target is a Regexp&quot; do
     it 'should should match submitted text using a regexp' do
-      string = 'foo'
-      string.should have_text(/fo*/)
+      matcher = have_text(/fo*/)
+      matcher.matches?('foo').should be_true
+      matcher.matches?('bar').should be_nil
     end
   end
   
   describe &quot;where target is a String&quot; do
     it 'should match submitted text using a string' do
-      string = 'foo'
-      string.should have_text('foo')
+      matcher = have_text('foo')
+      matcher.matches?('foo').should be_true
+      matcher.matches?('foo bar').should be_false
     end
   end
   </diff>
      <filename>spec/spec/rails/matchers/have_text_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,21 +2,19 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
 
 describe &quot;include_text&quot; do
 
-  describe &quot;where target is a String&quot; do
-    it 'should match submitted text using a string' do
-      string = 'foo'
-      string.should include_text('foo')
-    end
+  it &quot;should have a helpful description&quot; do
+    matcher = include_text(&quot;foo bar&quot;)
+    matcher.description.should == 'include text &quot;foo bar&quot;'
+  end
 
-    it 'should match if the text is contained' do
-      string = 'I am a big piece of text'
-      string.should include_text('big piece')
-    end
+  it 'should match if the text is contained' do
+    matcher = include_text('big piece')
+    matcher.matches?('I am a big piece of text').should be_true
+  end
 
-    it 'should not match if text is not contained' do
-      string = 'I am a big piece of text'
-      string.should_not include_text('corey')
-    end
+  it 'should not match if text is not contained' do
+    matcher = include_text('foo bar')
+    matcher.matches?('hello world').should be_false
   end
 
 end</diff>
      <filename>spec/spec/rails/matchers/include_text_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>04cdabad87f78cbf1efb3265f1b5031aec3dad9d</id>
    </parent>
  </parents>
  <author>
    <name>Ben Mabey</name>
    <email>ben@benmabey.com</email>
  </author>
  <url>http://github.com/bmabey/rspec-rails/commit/4990cda9f01edd1dd9a714563ad22ce333d9c225</url>
  <id>4990cda9f01edd1dd9a714563ad22ce333d9c225</id>
  <committed-date>2009-01-16T21:29:21-08:00</committed-date>
  <authored-date>2009-01-16T21:29:21-08:00</authored-date>
  <message>adding #description to have_text and include_text [#656]</message>
  <tree>35f5aefc1470a892a45b337bbc0bf29cff527cb4</tree>
  <committer>
    <name>Ben Mabey</name>
    <email>ben@benmabey.com</email>
  </committer>
</commit>
