Modified: trunk/app/controllers/users_controller.rb (2488 => 2489)
--- trunk/app/controllers/users_controller.rb 2010-07-30 14:16:47 UTC (rev 2488)
+++ trunk/app/controllers/users_controller.rb 2010-08-02 16:03:07 UTC (rev 2489)
@@ -146,10 +146,12 @@
# check that captcha was entered correctly
- if !captcha_valid?(params[:validation][:captcha_id], params[:validation][:captcha_validation])
- flash.now[:error] = 'Verification text was not entered correctly - please try again.'
- render :action ="" 'new'
- return
+ unless RAILS_ENV == 'test'
+ if !captcha_valid?(params[:validation][:captcha_id], params[:validation][:captcha_validation])
+ flash.now[:error] = 'Verification text was not entered correctly - please try again.'
+ render :action ="" 'new'
+ return
+ end
end
if params[:user][:username] && params[:user][:password] && params[:user][:password_confirmation]