From d411c85a65baaf4ed268b1b1bb4df408cee4981a Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Mon, 23 May 2011 12:02:06 +0100 Subject: Replace references to ActiveSupport::SecureRandom with just SecureRandom, and require 'securerandom' from the stdlib when active support is required. --- activesupport/test/secure_random_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'activesupport/test/secure_random_test.rb') diff --git a/activesupport/test/secure_random_test.rb b/activesupport/test/secure_random_test.rb index 44694cd811..799ac2a87b 100644 --- a/activesupport/test/secure_random_test.rb +++ b/activesupport/test/secure_random_test.rb @@ -2,18 +2,18 @@ require 'abstract_unit' class SecureRandomTest < Test::Unit::TestCase def test_random_bytes - b1 = ActiveSupport::SecureRandom.random_bytes(64) - b2 = ActiveSupport::SecureRandom.random_bytes(64) + b1 = SecureRandom.random_bytes(64) + b2 = SecureRandom.random_bytes(64) assert_not_equal b1, b2 end def test_hex - b1 = ActiveSupport::SecureRandom.hex(64) - b2 = ActiveSupport::SecureRandom.hex(64) + b1 = SecureRandom.hex(64) + b2 = SecureRandom.hex(64) assert_not_equal b1, b2 end def test_random_number - assert ActiveSupport::SecureRandom.random_number(5000) < 5000 + assert SecureRandom.random_number(5000) < 5000 end end -- cgit v1.2.3