Simple Captcha - How to check?

I am using Simple Captcha plugin to generate captcha. Does anyone know how I should modify my rails tests to handle this?

0


a source to share


1 answer


Plain Captcha automatically returns that the captcha is valid if RAILS_ENV is "test". From source code:



def simple_captcha_valid?
  return true if RAILS_ENV == 'test'
...

      

+2


a source







All Articles