Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made Responder#render spec clearer

  • Loading branch information...
commit ce354b1ac9cea1ce83ab21c483569aaf4d21e6bb 1 parent 9f870d3
@nakajima authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/response_spec.rb
View
5 spec/response_spec.rb
@@ -30,8 +30,9 @@ def new_response
context "when there are options passed" do
it "sends the options to the request" do
- mock(request).last_modified :yesterday
- new_response.render(:show, :last_modified => :yesterday)
+ t = Time.now
+ mock(request).last_modified t
+ new_response.render(:show, :last_modified => t)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.