提交 8b6870cf 编写于 作者: M Michael Koziarski

Prevent deprecation warning in the tests

上级 96c6fe08
...@@ -31,6 +31,8 @@ def setup ...@@ -31,6 +31,8 @@ def setup
end end
def test_secret_key_generation 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
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册