diff options
author | Patrick Toomey <ptoomey3@biasedcoin.com> | 2017-08-22 13:11:07 -0600 |
---|---|---|
committer | Patrick Toomey <ptoomey3@biasedcoin.com> | 2017-08-22 13:11:07 -0600 |
commit | 2b4c547ea803e3de8684b7cc3665b9a1cd0e6d3a (patch) | |
tree | 0e2e40e6565daa48d30ca1a06e16c3f8e326bb52 /actionpack | |
parent | 8a7e91b084c9d502ebe569c6c64616f1ebdba7fd (diff) | |
download | rails-2b4c547ea803e3de8684b7cc3665b9a1cd0e6d3a.tar.gz rails-2b4c547ea803e3de8684b7cc3665b9a1cd0e6d3a.tar.bz2 rails-2b4c547ea803e3de8684b7cc3665b9a1cd0e6d3a.zip |
Use equality in place of refute assertions for accuracy
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 6 |
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 |