<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -40,30 +40,24 @@ describe &quot;include_text&quot;, :type =&gt; :controller do
         response.should include_text('text for this')
       end
 
-      it &quot;should fail with matching text&quot; do
+      it &quot;should fail with incorrect text&quot; do
         post 'text_action'
         lambda {
-          response.should include_text(&quot;this is NOT the text for this action&quot;)
-        }.should fail_with(&quot;expected to find \&quot;this is NOT the text for this action\&quot; in \&quot;this is the text for this action\&quot;&quot;)
-      end
-
-      it &quot;should fail when a template is rendered&quot; do
-        post 'some_action'
-        failure_message = case mode
-        when 'isolation'
-          /expected to find \&quot;this is the text for this action\&quot; in \&quot;render_spec\/some_action\&quot;/
-        when 'integration'
-          /expected to find \&quot;this is the text for this action\&quot; in \&quot;\&quot;/
-        end
-        lambda {
-          response.should include_text(&quot;this is the text for this action&quot;)
-        }.should fail_with(failure_message)
+          response.should include_text(&quot;the accordian guy&quot;)
+        }.should fail_with(&quot;expected to find \&quot;the accordian guy\&quot; in \&quot;this is the text for this action\&quot;&quot;)
       end
 
       it &quot;should pass using should_not with incorrect text&quot; do
         post 'text_action'
         response.should_not include_text(&quot;the accordian guy&quot;)
       end
+
+      it &quot;should fail when a template is rendered&quot; do
+        get 'some_action'
+        lambda {
+          response.should include_text(&quot;this is the text for this action&quot;)
+        }.should fail_with(/expected to find \&quot;this is the text for this action\&quot;/)
+      end
     end
   end
 end</diff>
      <filename>spec/rails/matchers/include_text_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b408c45fbf4369f528bf1ed8c2ae66e5b703dfe0</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>david@david-chelimskys-macbook-pro.local</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/9946c4b98adcdce017eb51a585e2b3699d4aa16e</url>
  <id>9946c4b98adcdce017eb51a585e2b3699d4aa16e</id>
  <committed-date>2008-08-24T08:19:49-07:00</committed-date>
  <authored-date>2008-08-24T08:19:49-07:00</authored-date>
  <message>reduce precision of expected failure message in code example</message>
  <tree>1899af33e2ffb9ff3eabb560b7adaf863ac5db50</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>david@david-chelimskys-macbook-pro.local</email>
  </committer>
</commit>
