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:
parent
8a7e91b084
commit
2b4c547ea8
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue