1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use equality in place of refute assertions for accuracy

This commit is contained in:
Patrick Toomey 2017-08-22 13:11:07 -06:00
parent 8a7e91b084
commit 2b4c547ea8
No known key found for this signature in database
GPG key ID: 0096BD01AA78248E

View file

@ -381,14 +381,12 @@ class ExpiresInRenderTest < ActionController::TestCase
def test_expires_now_with_conflicting_cache_control_headers
get :conditional_hello_with_expires_and_confliciting_cache_control_headers
assert_match(/no-cache/, @response.headers["Cache-Control"])
refute_match(/must-revalidate/, @response.headers["Cache-Control"])
assert_equal "no-cache", @response.headers["Cache-Control"]
end
def test_no_expires_now_with_conflicting_cache_control_headers
get :conditional_hello_without_expires_and_confliciting_cache_control_headers
assert_match(/no-cache/, @response.headers["Cache-Control"])
refute_match(/must-revalidate/, @response.headers["Cache-Control"])
assert_equal "no-cache", @response.headers["Cache-Control"]
end
def test_date_header_when_expires_in