class NamespacedEtagRenderTest

Public Instance Methods

test_etag_reflects_template_digest() click to toggle source
# File actionpack/test/controller/render_test.rb, line 582
def test_etag_reflects_template_digest
  get :hello_world
  assert_response :ok
  assert_not_nil etag = @response.etag

  request.if_none_match = etag
  get :hello_world
  assert_response :not_modified

  modify_template("namespaced/implicit_render_test/hello_world") do
    request.if_none_match = etag
    get :hello_world
    assert_response :ok
    assert_not_equal etag, @response.etag
  end
end