aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/session
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-05-23 12:02:06 +0100
committerJon Leighton <j@jonathanleighton.com>2011-05-23 20:25:44 +0100
commitd411c85a65baaf4ed268b1b1bb4df408cee4981a (patch)
treeb054f3a4b95748b10e70c8d3a952e3b829366f2f /actionpack/test/dispatch/session
parenta5fb1c61755f03a8c75b0a434fb2aca57502293b (diff)
downloadrails-d411c85a65baaf4ed268b1b1bb4df408cee4981a.tar.gz
rails-d411c85a65baaf4ed268b1b1bb4df408cee4981a.tar.bz2
rails-d411c85a65baaf4ed268b1b1bb4df408cee4981a.zip
Replace references to ActiveSupport::SecureRandom with just SecureRandom, and require 'securerandom' from the stdlib when active support is required.
Diffstat (limited to 'actionpack/test/dispatch/session')
-rw-r--r--actionpack/test/dispatch/session/cookie_store_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/session/cookie_store_test.rb b/actionpack/test/dispatch/session/cookie_store_test.rb
index b0efbcef4a..301bf9c6d2 100644
--- a/actionpack/test/dispatch/session/cookie_store_test.rb
+++ b/actionpack/test/dispatch/session/cookie_store_test.rb
@@ -6,7 +6,7 @@ class CookieStoreTest < ActionDispatch::IntegrationTest
SessionSecret = 'b3c631c314c0bbca50c1b2843150fe33'
Verifier = ActiveSupport::MessageVerifier.new(SessionSecret, 'SHA1')
- SignedBar = Verifier.generate(:foo => "bar", :session_id => ActiveSupport::SecureRandom.hex(16))
+ SignedBar = Verifier.generate(:foo => "bar", :session_id => SecureRandom.hex(16))
class TestController < ActionController::Base
def no_session_access