Permalink
Browse files

Added test to verify if caching works with a HEAD request

  • Loading branch information...
1 parent 01b98bc commit 6d1735adaa7b172c3f3a186bdbbee6e4ef268dc8 @michiels michiels committed Jan 28, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/caching_test.rb
View
@@ -148,6 +148,12 @@ def test_page_caching_resources_saves_to_correct_path_with_extension_even_if_def
end
end
+ def test_should_cache_head_with_ok_status
+ head :ok
+ assert_response :ok
+ assert_page_cached :ok, 'head with ok status should have been cached'
+ end
+
def test_should_cache_get_with_ok_status
get :ok
assert_response :ok

0 comments on commit 6d1735a

Please sign in to comment.