<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+07/01/08 - should.render now takes optional response code [Matthew Bass]
+
 06/28/08 - Added should.render for testing template rendering [Matthew Bass]
 
 05/15/08 - First pass at overriding generators to produce specs [Matthew Bass]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -5,15 +5,18 @@ module Test::Spec::Rails::ShouldRender
   # Test that a specific template was rendered:
   #   request.should.render 'foo'
   #
-  def render(template = '')
-    @object.assert_response :success
+  # Test that a template was rendered with a specific response code:
+  #   request.should.render 'foo', :error
+  #
+  def render(template = '', response = :success)
+    @object.assert_response response
     @object.assert_template template unless template.blank?
   end
 end
 
 module Test::Spec::Rails::ShouldNotRender
   # Test that we didn't render
-  def redirect(template = '')
+  def render(template = '', response = :success)
     @object.assert_response :redirect # TODO: fix me
   end
 end</diff>
      <filename>lib/test/spec/rails/should_render.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>df94cd150f1aa3c91af2ff873fd48cd400be9f2d</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Bass</name>
    <email>matt@anacreon.local</email>
  </author>
  <url>http://github.com/uhlenbrock/test_spec_on_rails/commit/f68f952a4a24e2ac96cb38d318933eb066c610fb</url>
  <id>f68f952a4a24e2ac96cb38d318933eb066c610fb</id>
  <committed-date>2009-05-11T15:21:15-07:00</committed-date>
  <authored-date>2008-07-01T18:43:05-07:00</authored-date>
  <message>should.render now takes optional response code

Signed-off-by: Vann Ek &lt;vann@innerfusion.net&gt;</message>
  <tree>bdb4165da5130d7694fc9e86560f506d6df47935</tree>
  <committer>
    <name>Vann Ek</name>
    <email>vann@innerfusion.net</email>
  </committer>
</commit>
