From 1170cceaaec8c0c8aef173913405be1456e4b2be Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Mon, 23 May 2011 19:45:49 +0100 Subject: Removed ActiveSupport::SecureRandom in favour of SecureRandom from the standard library. (It has been deprecated in the 3-1-stable branch.) --- activesupport/test/secure_random_test.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 activesupport/test/secure_random_test.rb (limited to 'activesupport/test') 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 -- cgit v1.2.3