Prevent deprecation warning in the tests

This commit is contained in:
Michael Koziarski
2008-08-28 12:47:18 +02:00
parent 96c6fe0842
commit 8b6870cfae

View File

@@ -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