aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/test/controller/render_test.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index f1ec383070..e067a7b78d 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -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