diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-11-02 20:26:11 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-11-03 14:57:54 -0200 |
commit | 5d23925f84f0241e28b3fbce740150136ba08254 (patch) | |
tree | 827b0954d7ee8528c7b827814172cc0b60aff92e /railties/test/application/middleware/remote_ip_test.rb | |
parent | fb0cea2b8cf61cde1aa4c640b56e896fbe308aa1 (diff) | |
download | rails-5d23925f84f0241e28b3fbce740150136ba08254.tar.gz rails-5d23925f84f0241e28b3fbce740150136ba08254.tar.bz2 rails-5d23925f84f0241e28b3fbce740150136ba08254.zip |
Use derived keys everywhere, http_authentication was missing it
Diffstat (limited to 'railties/test/application/middleware/remote_ip_test.rb')
-rw-r--r-- | railties/test/application/middleware/remote_ip_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/application/middleware/remote_ip_test.rb b/railties/test/application/middleware/remote_ip_test.rb index 9d97bae9ae..fde13eeb94 100644 --- a/railties/test/application/middleware/remote_ip_test.rb +++ b/railties/test/application/middleware/remote_ip_test.rb @@ -1,4 +1,6 @@ require 'isolation/abstract_unit' +# FIXME remove DummyKeyGenerator and this require in 4.1 +require 'active_support/key_generator' module ApplicationTests class RemoteIpTest < ActiveSupport::TestCase @@ -8,7 +10,7 @@ module ApplicationTests remote_ip = nil env = Rack::MockRequest.env_for("/").merge(env).merge!( 'action_dispatch.show_exceptions' => false, - 'action_dispatch.secret_token' => 'b3c631c314c0bbca50c1b2843150fe33' + 'action_dispatch.key_generator' => ActiveSupport::DummyKeyGenerator.new('b3c631c314c0bbca50c1b2843150fe33') ) endpoint = Proc.new do |e| |