This project is archived and is in readonly mode.

#3718 ✓committed
Santiago Pastorino

[PATCH] vendored_test failures key is required to write a cookie

Reported by Santiago Pastorino | January 17th, 2010 @ 04:16 AM | in 3.0.2


Loaded suite test/plugins/vendored_test
Started
..E..E............
Finished in 39.412021 seconds.

  1) Error:
test_if_specified,_only_those_plugins_are_loaded(PluginsTest::VendoredOrderingTest):
ActiveSupport::Testing::RemoteError: caught ArgumentError: A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/application.rb
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:178:in `ensure_session_key'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:88:in `initialize'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:72:in `new'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:72:in `build'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `build'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/inflector/methods.rb:101:in `inject'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `each'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `inject'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `build'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:105:in `app'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:120
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:29:in `instance_exec'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:29:in `run'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:67:in `run_initializers'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:66:in `each'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:66:in `run_initializers'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:38:in `initialize!'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:12:in `__send__'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:12:in `initialize!'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/tmp/app/config/environment.rb:5
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    test/plugins/vendored_test.rb:163:in `boot_rails'
    test/plugins/vendored_test.rb:173:in `test_if_specified,_only_those_plugins_are_loaded'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:60:in `run'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:98:in `run_in_isolation'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:95:in `fork'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:95:in `run_in_isolation'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:58:in `run'

  2) Error:
test_the_plugins_are_initialized_in_the_order_they_are_specified(PluginsTest::VendoredOrderingTest):
ActiveSupport::Testing::RemoteError: caught ArgumentError: A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/application.rb
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:178:in `ensure_session_key'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb:88:in `initialize'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:72:in `new'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:72:in `build'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `build'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/inflector/methods.rb:101:in `inject'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `each'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `inject'
    /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack/lib/action_dispatch/middleware/stack.rb:116:in `build'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:105:in `app'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:120
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:29:in `instance_exec'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:29:in `run'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:67:in `run_initializers'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:66:in `each'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/initializable.rb:66:in `run_initializers'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:38:in `initialize!'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:12:in `__send__'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/lib/rails/application.rb:12:in `initialize!'
    /home/santiago/Documentos/WyeWorks/Proys/rails/railties/tmp/app/config/environment.rb:5
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    test/plugins/vendored_test.rb:163:in `boot_rails'
    test/plugins/vendored_test.rb:179:in `test_the_plugins_are_initialized_in_the_order_they_are_specified'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:60:in `run'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:98:in `run_in_isolation'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:95:in `fork'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:95:in `run_in_isolation'
    /home/santiago/Documentos/WyeWorks/Proys/rails/activesupport/lib/active_support/testing/isolation.rb:58:in `run'

18 tests, 18 assertions, 0 failures, 2 errors

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages