diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-05-23 19:45:49 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-05-23 20:25:44 +0100 |
commit | 1170cceaaec8c0c8aef173913405be1456e4b2be (patch) | |
tree | 226e6eb1294b6490a9842d604330a948951e2135 /activesupport/test | |
parent | d411c85a65baaf4ed268b1b1bb4df408cee4981a (diff) | |
download | rails-1170cceaaec8c0c8aef173913405be1456e4b2be.tar.gz rails-1170cceaaec8c0c8aef173913405be1456e4b2be.tar.bz2 rails-1170cceaaec8c0c8aef173913405be1456e4b2be.zip |
Removed ActiveSupport::SecureRandom in favour of SecureRandom from the standard library. (It has been deprecated in the 3-1-stable branch.)
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/secure_random_test.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/activesupport/test/secure_random_test.rb b/activesupport/test/secure_random_test.rb deleted file mode 100644 index 799ac2a87b..0000000000 --- a/activesupport/test/secure_random_test.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'abstract_unit' - -class SecureRandomTest < Test::Unit::TestCase - def test_random_bytes - b1 = SecureRandom.random_bytes(64) - b2 = SecureRandom.random_bytes(64) - assert_not_equal b1, b2 - end - - def test_hex - b1 = SecureRandom.hex(64) - b2 = SecureRandom.hex(64) - assert_not_equal b1, b2 - end - - def test_random_number - assert SecureRandom.random_number(5000) < 5000 - end -end |