mirror of
https://github.com/github/rails.git
synced 2026-01-26 14:58:11 -05:00
Prevent deprecation warning in the tests
This commit is contained in:
@@ -31,6 +31,8 @@ class SecretKeyGenerationTest < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_secret_key_generation
|
||||
assert @generator.generate_secret.length >= SECRET_KEY_MIN_LENGTH
|
||||
assert_deprecated /ActiveSupport::SecureRandom\.hex\(64\)/ do
|
||||
assert @generator.generate_secret.length >= SECRET_KEY_MIN_LENGTH
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user