Hi all Am trying to get the salted login generator working on a plain vanilla rails installation with no other controllers. Followed the instructions in the README_USER_LOGIN and README_LOCALIZATION. // Rails 0.12.1 Ruby 1.8.2 Gentoo OS salted_login_generator 1.0.8 iconv 2.3.4 rake 0.5.4 localization_generator 1.0.7 // Running rake before creating any other scaffolding gives me this: 1) Failure: test_change_password(UserControllerTest) [/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/deprecated_assertions.rb:23:in `assert_session_has'' test/functional/user_controller_test.rb:186:in `do_change_password'' test/functional/user_controller_test.rb:194:in `test_change_password'']: <"user"> is not in the session <#<ActionController::TestSession:0x2b486f50 @attributes={"user"=>nil, "flash"=>{}}>> 2) Error: test_delete(UserControllerTest): NoMethodError: undefined method `deleted='' for nil:NilClass ./test/functional/../../config/..//app/controllers/user_controller.rb:141:in `restore_deleted'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in `perform_action_without_filters'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/filters.rb:294:in `perform_action_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/rescue.rb:79:in `perform_action'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in `process'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/test_process.rb:255:in `process'' (eval):3:in `post'' test/functional/user_controller_test.rb:128:in `test_delete'' 3) Error: test_forgot_password(UserControllerTest): ActionView::TemplateError: undefined method `errors'' for nil:NilClass On line #2 of /user/change_password.rhtml 1: <div title="<%= title_helper %>" class="form"> 2: <%= head_helper :error => true %> 3: 4: <div class="form-padding"> 5: <%= message_helper ''change'' %> /gems/actionpack-1.8.1/lib/action_view/helpers/active_record_helper.rb:100:in `error_messages_for'' ./test/functional/../../config/..//app/helpers/user_helper.rb:81:in `head_helper'' (erb):2:in `evaluate_locals'' /gems/actionpack-1.8.1/lib/action_view/base.rb:265:in `evaluate_locals'' /gems/actionpack-1.8.1/lib/action_view/base.rb:276:in `rhtml_render'' /gems/actionpack-1.8.1/lib/action_view/base.rb:201:in `send'' /gems/actionpack-1.8.1/lib/action_view/base.rb:201:in `render_template'' /gems/actionpack-1.8.1/lib/action_view/base.rb:181:in `render_file'' /gems/actionpack-1.8.1/lib/action_controller/layout.rb:208:in `render_without_benchmark'' /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:23:in `render'' /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:23:in `measure'' /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:23:in `render'' /gems/actionpack-1.8.1/lib/action_controller/base.rb:709:in `perform_action_without_filters'' /gems/actionpack-1.8.1/lib/action_controller/filters.rb:294:in `perform_action_without_benchmark'' /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in `perform_action_without_rescue'' /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in `measure'' /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in `perform_action_without_rescue'' /gems/actionpack-1.8.1/lib/action_controller/rescue.rb:79:in `perform_action'' /gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in `send'' /gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in `process'' /gems/actionpack-1.8.1/lib/action_controller/test_process.rb:255:in `process'' (eval):3:in `post'' test/functional/user_controller_test.rb:220:in `do_forgot_password'' test/functional/user_controller_test.rb:262:in `test_forgot_password'' /usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `__send__'' /usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `run'' /usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'' /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'' /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'' /usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'' /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'' /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'' /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:in `run_suite'' /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:65:in `start_mediator'' /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:39:in `start'' /usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:27:in `run'' /usr/lib/ruby/1.8/test/unit/autorunner.rb:194:in `run'' /usr/lib/ruby/1.8/test/unit/autorunner.rb:14:in `run'' /usr/lib/ruby/1.8/test/unit.rb:285 /usr/lib/ruby/1.8/test/unit.rb:283 4) Failure: test_signup(UserControllerTest) [/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/assertions.rb:44:in `assert_response'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/deprecated_assertions.rb:13:in `assert_redirect'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/deprecated_assertions.rb:98:in `assert_redirect_url'' test/functional/user_controller_test.rb:37:in `do_test_signup'' test/functional/user_controller_test.rb:145:in `test_signup'']: Expected response to be a <:redirect>, but was <200> 9 tests, 66 assertions, 2 failures, 2 errors I get the same error if I run the functional test directly Any advice very gratefully received Many Thanks Steven
Steve, I''ll take a look at this later tonight or in the morning. Joe On May 17, 2005, at 3:19 PM, steven shingler wrote:> Hi all > > Am trying to get the salted login generator working on a plain > vanilla rails installation with no other controllers. > > Followed the instructions in the README_USER_LOGIN and > README_LOCALIZATION. > > // > Rails 0.12.1 > Ruby 1.8.2 > Gentoo OS > salted_login_generator 1.0.8 > iconv 2.3.4 > rake 0.5.4 > localization_generator 1.0.7 > // > > Running rake before creating any other scaffolding gives me this: > > 1) Failure: > test_change_password(UserControllerTest) > [/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/deprecated_assertions.rb:23:in `assert_session_has'' > test/functional/user_controller_test.rb:186:in > `do_change_password'' > test/functional/user_controller_test.rb:194:in > `test_change_password'']: > <"user"> is not in the session <#<ActionController::TestSession: > 0x2b486f50 > @attributes={"user"=>nil, "flash"=>{}}>> > > 2) Error: > test_delete(UserControllerTest): > NoMethodError: undefined method `deleted='' for nil:NilClass > ./test/functional/../../config/..//app/controllers/ > user_controller.rb:141:in `restore_deleted'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/base.rb:708:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/base.rb:708:in `perform_action_without_filters'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/filters.rb:294:in `perform_action_without_benchmark'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/benchmarking.rb:37:in > `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/benchmarking.rb:37:in `measure'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/benchmarking.rb:37:in > `perform_action_without_rescue'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/rescue.rb:79:in `perform_action'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/base.rb:330:in `send'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/base.rb:330:in `process'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/test_process.rb:255:in `process'' > (eval):3:in `post'' > test/functional/user_controller_test.rb:128:in `test_delete'' > > 3) Error: > test_forgot_password(UserControllerTest): > ActionView::TemplateError: undefined method `errors'' for nil:NilClass > On line #2 of /user/change_password.rhtml > > 1: <div title="<%= title_helper %>" class="form"> > 2: <%= head_helper :error => true %> > 3: > 4: <div class="form-padding"> > 5: <%= message_helper ''change'' %> > > /gems/actionpack-1.8.1/lib/action_view/helpers/ > active_record_helper.rb:100:in `error_messages_for'' > ./test/functional/../../config/..//app/helpers/user_helper.rb: > 81:in `head_helper'' > (erb):2:in `evaluate_locals'' > /gems/actionpack-1.8.1/lib/action_view/base.rb:265:in > `evaluate_locals'' > /gems/actionpack-1.8.1/lib/action_view/base.rb:276:in > `rhtml_render'' > /gems/actionpack-1.8.1/lib/action_view/base.rb:201:in `send'' > /gems/actionpack-1.8.1/lib/action_view/base.rb:201:in > `render_template'' > /gems/actionpack-1.8.1/lib/action_view/base.rb:181:in `render_file'' > /gems/actionpack-1.8.1/lib/action_controller/layout.rb:208:in > `render_without_benchmark'' > /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb: > 23:in `render'' > /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb: > 23:in `measure'' > /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb: > 23:in `render'' > /gems/actionpack-1.8.1/lib/action_controller/base.rb:709:in > `perform_action_without_filters'' > /gems/actionpack-1.8.1/lib/action_controller/filters.rb:294:in > `perform_action_without_benchmark'' > /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb: > 37:in `perform_action_without_rescue'' > /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb: > 37:in `measure'' > /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb: > 37:in `perform_action_without_rescue'' > /gems/actionpack-1.8.1/lib/action_controller/rescue.rb:79:in > `perform_action'' > /gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in `send'' > /gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in > `process'' > /gems/actionpack-1.8.1/lib/action_controller/test_process.rb: > 255:in `process'' > (eval):3:in `post'' > test/functional/user_controller_test.rb:220:in `do_forgot_password'' > test/functional/user_controller_test.rb:262:in > `test_forgot_password'' > /usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `__send__'' > /usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `run'' > /usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'' > /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'' > /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'' > /usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'' > /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'' > /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'' > /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:in > `run_suite'' > /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:65:in > `start_mediator'' > /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:39:in `start'' > /usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:27:in `run'' > /usr/lib/ruby/1.8/test/unit/autorunner.rb:194:in `run'' > /usr/lib/ruby/1.8/test/unit/autorunner.rb:14:in `run'' > /usr/lib/ruby/1.8/test/unit.rb:285 > /usr/lib/ruby/1.8/test/unit.rb:283 > > 4) Failure: > test_signup(UserControllerTest) > [/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/assertions.rb:44:in `assert_response'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/deprecated_assertions.rb:13:in `assert_redirect'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ > action_controller/deprecated_assertions.rb:98:in `assert_redirect_url'' > test/functional/user_controller_test.rb:37:in `do_test_signup'' > test/functional/user_controller_test.rb:145:in `test_signup'']: > Expected response to be a <:redirect>, but was <200> > > 9 tests, 66 assertions, 2 failures, 2 errors > > I get the same error if I run the functional test directly > > Any advice very gratefully received > Many Thanks > Steven > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Hi, FWIW I am getting an exception at signup. It''s invisible on the web page, but it shows up in the log. I was investigating why i get [1] whenever i do signup. I found out that signup in UserController redirects to login: ...... flash[''notice''] = l(:user_signup_succeeded) # warn "**** login after signup: " + @params[''user''][''login''] # I put this in to see what''s going on. redirect_to :action => ''login'' ...... I verified that both @params[''user''] and @params[''user''][''login''] are defined at this point (and contain the correct values) login then does this: .... if @session[''user''] = User.authenticate(@params[''user''][''login''], @params[''user''][''password'']) .... I verified that at this point, @params[''user''] is Nil so accessing @params[''user''][''login''] crashes. This is where i am at right now. I am not sure how to fix it. I am new to Rails and i am absolutely not into hacking something i don''t understand :) Questions i have: - Why is @params[] nil at that point? Since @params is an instance variable, there are 2 options: 1 - Rails resets it on the redirect. E.g. Rails resets it for every new action. 2 - Rais creates a new UserController object for every URL. - How can we fix this? Again, two options: 1 - Pass our parameters in the redirect. Since i am new to Rails i don''t know how to do this :) 2 - Handle the @params[''user''] == nil case in the login method. I think i prefer that because it seems to me as if it should be possible to just go straight to /login (no parameters) and have Rails not crash. Keep in mind that the login method is responsible for presenting the login form, not to perform the actual login operation. All it does is show the login / password form. So it would be reasonable for it to be called without parameters. Nik [1] NoMethodError (undefined method `[]'' for nil:NilClass): app/controllers/user_controller.rb:19:in `login'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/base.rb:708:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/base.rb:708:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/filters.rb:294:in `perform_action_without_benchmark'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/benchmarking.rb:37:in `perform_action_without_rescue'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/benchmarking.rb:37:in `measure'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/benchmarking.rb:37:in `perform_action_without_rescue'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/rescue.rb:79:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/base.rb:330:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/base.rb:330:in `process'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/ action_controller/base.rb:273:in `process'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in `dispatch'' /Applications/eclipse/cloudCommerce/tw/public/dispatch.rb:10 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ active_support/dependencies.rb:189:in `load'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/ active_support/dependencies.rb:189:in `load'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb: 82:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb: 35:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb: 21:in `dispatch'' script/server:48 On May 18, 2005, at 4:45, Joseph Hosteny wrote:> Steve, > > I''ll take a look at this later tonight or in the morning. > > Joe > > On May 17, 2005, at 3:19 PM, steven shingler wrote: > >> Hi all >> >> Am trying to get the salted login generator working on a plain >> vanilla rails installation with no other controllers. >> >> Followed the instructions in the README_USER_LOGIN and >> README_LOCALIZATION. >> >> // >> Rails 0.12.1 >> Ruby 1.8.2 >> Gentoo OS >> salted_login_generator 1.0.8 >> iconv 2.3.4 >> rake 0.5.4 >> localization_generator 1.0.7 >> // >> >> Running rake before creating any other scaffolding gives me this: >> >> 1) Failure: >> test_change_password(UserControllerTest) >> >> [/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> deprecated_assertions.rb:23:in `assert_session_has'' >> test/functional/user_controller_test.rb:186:in >> `do_change_password'' >> test/functional/user_controller_test.rb:194:in >> `test_change_password'']: >> <"user"> is not in the session >> <#<ActionController::TestSession:0x2b486f50 >> @attributes={"user"=>nil, "flash"=>{}}>> >> >> 2) Error: >> test_delete(UserControllerTest): >> NoMethodError: undefined method `deleted='' for nil:NilClass >> >> ./test/functional/../../config/..//app/controllers/ >> user_controller.rb:141:in `restore_deleted'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> base.rb:708:in `send'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> base.rb:708:in `perform_action_without_filters'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> filters.rb:294:in `perform_action_without_benchmark'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> benchmarking.rb:37:in `perform_action_without_rescue'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> benchmarking.rb:37:in `measure'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> benchmarking.rb:37:in `perform_action_without_rescue'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> rescue.rb:79:in `perform_action'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> base.rb:330:in `send'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> base.rb:330:in `process'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> test_process.rb:255:in `process'' >> (eval):3:in `post'' >> test/functional/user_controller_test.rb:128:in `test_delete'' >> >> 3) Error: >> test_forgot_password(UserControllerTest): >> ActionView::TemplateError: undefined method `errors'' for nil:NilClass >> On line #2 of /user/change_password.rhtml >> >> 1: <div title="<%= title_helper %>" class="form"> >> 2: <%= head_helper :error => true %> >> 3: >> 4: <div class="form-padding"> >> 5: <%= message_helper ''change'' %> >> >> >> /gems/actionpack-1.8.1/lib/action_view/helpers/ >> active_record_helper.rb:100:in `error_messages_for'' >> >> ./test/functional/../../config/..//app/helpers/user_helper.rb:81:in >> `head_helper'' >> (erb):2:in `evaluate_locals'' >> /gems/actionpack-1.8.1/lib/action_view/base.rb:265:in >> `evaluate_locals'' >> /gems/actionpack-1.8.1/lib/action_view/base.rb:276:in >> `rhtml_render'' >> /gems/actionpack-1.8.1/lib/action_view/base.rb:201:in `send'' >> /gems/actionpack-1.8.1/lib/action_view/base.rb:201:in >> `render_template'' >> /gems/actionpack-1.8.1/lib/action_view/base.rb:181:in `render_file'' >> /gems/actionpack-1.8.1/lib/action_controller/layout.rb:208:in >> `render_without_benchmark'' >> /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:23:in >> `render'' >> /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:23:in >> `measure'' >> /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:23:in >> `render'' >> /gems/actionpack-1.8.1/lib/action_controller/base.rb:709:in >> `perform_action_without_filters'' >> /gems/actionpack-1.8.1/lib/action_controller/filters.rb:294:in >> `perform_action_without_benchmark'' >> /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in >> `perform_action_without_rescue'' >> /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in >> `measure'' >> /gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in >> `perform_action_without_rescue'' >> /gems/actionpack-1.8.1/lib/action_controller/rescue.rb:79:in >> `perform_action'' >> /gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in `send'' >> /gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in >> `process'' >> >> /gems/actionpack-1.8.1/lib/action_controller/test_process.rb:255:in >> `process'' >> (eval):3:in `post'' >> test/functional/user_controller_test.rb:220:in `do_forgot_password'' >> test/functional/user_controller_test.rb:262:in >> `test_forgot_password'' >> /usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `__send__'' >> /usr/lib/ruby/1.8/test/unit/testcase.rb:70:in `run'' >> /usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'' >> /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'' >> /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'' >> /usr/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'' >> /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `each'' >> /usr/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'' >> /usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:in >> `run_suite'' >> /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:65:in >> `start_mediator'' >> /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:39:in `start'' >> /usr/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:27:in `run'' >> /usr/lib/ruby/1.8/test/unit/autorunner.rb:194:in `run'' >> /usr/lib/ruby/1.8/test/unit/autorunner.rb:14:in `run'' >> /usr/lib/ruby/1.8/test/unit.rb:285 >> /usr/lib/ruby/1.8/test/unit.rb:283 >> >> 4) Failure: >> test_signup(UserControllerTest) >> >> [/usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> assertions.rb:44:in `assert_response'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> deprecated_assertions.rb:13:in `assert_redirect'' >> >> /usr/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/ >> deprecated_assertions.rb:98:in `assert_redirect_url'' >> test/functional/user_controller_test.rb:37:in `do_test_signup'' >> test/functional/user_controller_test.rb:145:in `test_signup'']: >> Expected response to be a <:redirect>, but was <200> >> >> 9 tests, 66 assertions, 2 failures, 2 errors >> >> I get the same error if I run the functional test directly >> >> Any advice very gratefully received >> Many Thanks >> Steven >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >