Return true when plain captcha is used in test env
This commit is contained in:
parent
e263241251
commit
e0e41d88d5
@ -53,6 +53,8 @@ module ReallySimpleCaptcha::Captcha
|
||||
|
||||
module ControllerHelpers
|
||||
def plain_captcha_valid?
|
||||
return true if Rails.env.test?
|
||||
|
||||
res = params[PlainCaptcha.field_name] == session[PlainCaptcha.field_name]
|
||||
session[PlainCaptcha.field_name] = nil
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user