negative-captcha icon indicating copy to clipboard operation
negative-captcha copied to clipboard

test_mode: don't expect timestamp and spinner

Open augnustin opened this issue 10 years ago • 0 comments

I am writing integration tests. It means I'm trying to send a form without previous page load. Which means I don't have the hidden timestamp and spinner and the negative captcha becomes invalid.

Shouldn't we have in: https://github.com/subwindow/negative-captcha/blob/fadfdf44d92f8e750ac1fd4394e6e637f254b2e7/lib/negative_captcha.rb

    if opts[:params] && (opts[:params][:spinner] || opts[:params][:timestamp]) || @@test_mode

and the same in the process method?

augnustin avatar Nov 18 '15 21:11 augnustin