Skip to content

Commit

Permalink
Prevent deprecation warning in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NZKoz committed Aug 28, 2008
1 parent 96c6fe0 commit 8b6870c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion railties/test/secret_key_generation_test.rb
Expand Up @@ -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.