Permalink
Browse files

Prevent deprecation warning in the tests

  • Loading branch information...
1 parent 96c6fe0 commit 8b6870cfae8d50a2ffd4f024d33d51aadaa6a6f7 @NZKoz NZKoz committed Aug 28, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 railties/test/secret_key_generation_test.rb
@@ -31,6 +31,8 @@ def setup
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

0 comments on commit 8b6870c

Please sign in to comment.