Permalink
Browse files

using new RESTful testing

  • Loading branch information...
1 parent abfa696 commit d7032a0c91ca962aee6f25dbf5d5c3228658a9f1 Blake Mizerany committed Apr 16, 2008
Showing with 1 addition and 2 deletions.
  1. +1 −2 test/app_test.rb
View
3 test/app_test.rb
@@ -146,8 +146,7 @@
should.be.ok
body.should.equal 'response body, maybe'
- get_it '/maybe', {},
- 'HTTP_IF_MODIFIED_SINCE' => modified_at.httpdate
+ get_it '/maybe', :env => { 'HTTP_IF_MODIFIED_SINCE' => modified_at.httpdate }
status.should.equal 304
body.should.equal ''
end

0 comments on commit d7032a0

Please sign in to comment.