Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Made Responder#render spec clearer

  • Loading branch information...
commit ce354b1ac9cea1ce83ab21c483569aaf4d21e6bb 1 parent 9f870d3
Pat Nakajima authored February 04, 2009

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  spec/response_spec.rb
5  spec/response_spec.rb
@@ -30,8 +30,9 @@ def new_response
30 30
     
31 31
     context "when there are options passed" do
32 32
       it "sends the options to the request" do
33  
-        mock(request).last_modified :yesterday
34  
-        new_response.render(:show, :last_modified => :yesterday)
  33
+        t = Time.now
  34
+        mock(request).last_modified t
  35
+        new_response.render(:show, :last_modified => t)
35 36
       end
36 37
     end
37 38
         

0 notes on commit ce354b1

Please sign in to comment.
Something went wrong with that request. Please try again.