Methods
Instance Public methods
etag(record)
Link
test_array()
Link
test_etag_reflects_template_digest()
Link
# File actionpack/test/controller/render_test.rb, line 502 def test_etag_reflects_template_digest get :with_template assert_response :ok assert_not_nil etag = @response.etag request.if_none_match = etag get :with_template assert_response :not_modified # Modify the template digest path = File.expand_path('../../fixtures/test/hello_world.erb', __FILE__) old = File.read(path) begin File.write path, 'foo' ActionView::Digestor.cache.clear request.if_none_match = etag get :with_template assert_response :ok assert_not_equal etag, @response.etag ensure File.write path, old end end