diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-08-28 12:47:18 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-08-28 12:47:18 +0200 |
commit | 8b6870cfae8d50a2ffd4f024d33d51aadaa6a6f7 (patch) | |
tree | d6a1c3d11a102064dde57a85a15806539c93b870 /railties | |
parent | 96c6fe084228d570dad80e3100830edb2bc0448d (diff) | |
download | rails-8b6870cfae8d50a2ffd4f024d33d51aadaa6a6f7.tar.gz rails-8b6870cfae8d50a2ffd4f024d33d51aadaa6a6f7.tar.bz2 rails-8b6870cfae8d50a2ffd4f024d33d51aadaa6a6f7.zip |
Prevent deprecation warning in the tests
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/secret_key_generation_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/secret_key_generation_test.rb b/railties/test/secret_key_generation_test.rb index 2a04cff856..7269f98ce5 100644 --- a/railties/test/secret_key_generation_test.rb +++ b/railties/test/secret_key_generation_test.rb @@ -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 |