aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-05-23 19:45:49 +0100
committerJon Leighton <j@jonathanleighton.com>2011-05-23 20:25:44 +0100
commit1170cceaaec8c0c8aef173913405be1456e4b2be (patch)
tree226e6eb1294b6490a9842d604330a948951e2135 /activesupport/test
parentd411c85a65baaf4ed268b1b1bb4df408cee4981a (diff)
downloadrails-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.rb19
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