<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 == Change Log
 
+* Fix with_error in render_matcher not causing the spec to fail when no exception raised. [Jason Garber]
+
 === 0.8.0 RC1
 
 * Make features task run in instance mode. [Sean Cribbs]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ module Spec
             @matching = @expected
           end
           case
-            when @error_message: false
+            when @expected_error_message: false
             when @expected: @actual == @expected
             when @matching: @actual =~ @matching
             else true
@@ -38,7 +38,11 @@ module Spec
                 &quot;expected page to #{action}, but got #{@actual.inspect}&quot;
               end
             else
-              &quot;expected rendering #{@content.inspect} to throw exception with message #{@expected_error_message.inspect}, but was #{@actual_error.message.inspect}&quot;
+              if @actual_error
+                &quot;expected rendering #{@content.inspect} to throw exception with message #{@expected_error_message.inspect}, but was #{@actual_error.message.inspect}&quot;
+              else
+                &quot;expected rendering #{@content.inspect} to throw exception with message #{@expected_error_message.inspect}, but no exception thrown. Rendered #{@actual.inspect} instead.&quot;
+              end
             end
           else
             &quot;expected #{@content.inspect} to render, but an exception was thrown #{@actual_error.message}&quot;</diff>
      <filename>spec/matchers/render_matcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -81,9 +81,9 @@ describe &quot;Standard Tags&quot; do
 
     it 'should error with invalid &quot;offset&quot; attribute' do
       message = &quot;`offset' attribute of `each' tag must be a positive number between 1 and 4 digits&quot;
-      page.should render(%{offset=&quot;a&quot;}).with_error(message)
-      page.should render(%{offset=&quot;-10&quot;}).with_error(message)
-      page.should render(%{offset=&quot;50000&quot;}).with_error(message)
+      page.should render(page_children_each_tags(%{offset=&quot;a&quot;})).with_error(message)
+      page.should render(page_children_each_tags(%{offset=&quot;-10&quot;})).with_error(message)
+      page.should render(page_children_each_tags(%{offset=&quot;50000&quot;})).with_error(message)
     end
 
     it 'should error with invalid &quot;by&quot; attribute' do</diff>
      <filename>spec/models/standard_tags_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b775ebe1f6c469fcb0fbb03b33afe1ee44bdb48a</id>
    </parent>
  </parents>
  <author>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </author>
  <url>http://github.com/hairballopolis/radiant/commit/c3fb06fdf4932afa6a1a5936deed1f616a9608c7</url>
  <id>c3fb06fdf4932afa6a1a5936deed1f616a9608c7</id>
  <committed-date>2009-06-05T14:00:06-07:00</committed-date>
  <authored-date>2009-06-05T13:58:50-07:00</authored-date>
  <message>Fix with_error in render_matcher not failing specs when no exception raised.</message>
  <tree>28c8495c00ea0d49380bcda31b63706452bacdae</tree>
  <committer>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </committer>
</commit>
