Permalink
Browse files

Fix tests with Rails 3.1.x

  • Loading branch information...
1 parent 8c3ad0d commit 3d508c5a88cd26dbdb9947239ff48acdc38835a4 Rafael Mendonça França committed Mar 24, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/http_cache_responder_test.rb
@@ -63,15 +63,15 @@ def test_refreshes_last_modified_if_cache_is_expired
end
def test_does_not_set_cache_unless_get_requests
- put :single
+ post :single
assert_nil @response.headers["Last-Modified"]
- assert_equal 204, @response.status
+ assert_equal 201, @response.status
end
def test_does_not_use_cache_unless_get_requests
@request.env["HTTP_IF_MODIFIED_SINCE"] = Time.utc(2009, 6).httpdate
- put :single
- assert_equal 204, @response.status
+ post :single
+ assert_equal 201, @response.status
end
def test_does_not_set_cache_if_http_cache_is_false
@@ -117,4 +117,4 @@ def test_does_not_set_cache_for_new_records
assert_equal "<xml />", @response.body
assert_equal 200, @response.status
end
-end
+end

0 comments on commit 3d508c5

Please sign in to comment.