Hi all, Just created a fresh Rails app from trunk/ at 7639. Then, I added the restful_authentication plugin and let it generate the models and controllers. Running the unit tests works perfectly, but the functional ones blow up with: test_should_require_password_on_signup(UsersControllerTest): NoMethodError: undefined method `dbman' for #<ActionController::TestSession:0xb79c8b98> /home/francois/src/icsh/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:111:in `authenticity_token_from_cookie_session' /home/francois/src/icsh/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:93:in `form_authenticity_token' /home/francois/src/icsh/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:81:in `verified_request?' I didn't configure anything for sessions, so I received the default cookie sesion store. I'll prepare a patch tomorrow, unless someone beats me to it. Bye ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Not the same issue, but here''s something relevant - http://dev.rubyonrails.org/ticket/9693 On 9/26/07, François Beausoleil <francois.beausoleil@gmail.com> wrote:> Hi all, > > Just created a fresh Rails app from trunk/ at 7639. Then, I added the > restful_authentication plugin and let it generate the models and > controllers. Running the unit tests works perfectly, but the > functional ones blow up with: > > test_should_require_password_on_signup(UsersControllerTest): > NoMethodError: undefined method `dbman'' for > #<ActionController::TestSession:0xb79c8b98> > /home/francois/src/icsh/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:111:in > `authenticity_token_from_cookie_session'' > /home/francois/src/icsh/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:93:in > `form_authenticity_token'' > /home/francois/src/icsh/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:81:in > `verified_request?'' > > I didn''t configure anything for sessions, so I received the default > cookie sesion store. I''ll prepare a patch tomorrow, unless someone > beats me to it. > > Bye ! > -- > François Beausoleil > http://blog.teksol.info/ > http://piston.rubyforge.org/ > > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
François Beausoleil
2007-Sep-26 14:15 UTC
Re: NoMethodError #dbman running functional tests
Hello Pratik, 2007/9/26, Pratik <pratiknaik@gmail.com>:> Not the same issue, but here's something relevant - > http://dev.rubyonrails.org/ticket/9693Thanks for the pointer. I'll base my patch on that. Bye ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---