diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2017-12-14 09:58:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 09:58:33 -0500 |
commit | 659c516bef2781cc66865fc78ed5dce682566d26 (patch) | |
tree | eb5ac2568af824f216769496d1a698ee2ae3136c /actionpack/test | |
parent | 4bd28efc189cf58891ece9d57d44994039054ca0 (diff) | |
parent | 82822a34217503336d51b7baab82cd18cf71e435 (diff) | |
download | rails-659c516bef2781cc66865fc78ed5dce682566d26.tar.gz rails-659c516bef2781cc66865fc78ed5dce682566d26.tar.bz2 rails-659c516bef2781cc66865fc78ed5dce682566d26.zip |
Merge pull request #31289 from witlessbird/fips-compatibility
Initial support for running Rails on FIPS-certified systems
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/live_stream_test.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/render_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/live_stream_test.rb b/actionpack/test/controller/live_stream_test.rb index 8cfb43a6bc..431fe90b23 100644 --- a/actionpack/test/controller/live_stream_test.rb +++ b/actionpack/test/controller/live_stream_test.rb @@ -464,7 +464,7 @@ module ActionController end def test_stale_with_etag - @request.if_none_match = %(W/"#{Digest::MD5.hexdigest('123')}") + @request.if_none_match = %(W/"#{ActiveSupport::Digest.hexdigest('123')}") get :with_stale assert_equal 304, response.status.to_i end diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 37a62edc15..7c5101f993 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -592,7 +592,7 @@ class EtagRenderTest < ActionController::TestCase end def strong_etag(record) - %("#{Digest::MD5.hexdigest(ActiveSupport::Cache.expand_cache_key(record))}") + %("#{ActiveSupport::Digest.hexdigest(ActiveSupport::Cache.expand_cache_key(record))}") end end |