Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_mode: don't expect timestamp and spinner #52

Open
augnustin opened this issue Nov 18, 2015 · 0 comments
Open

test_mode: don't expect timestamp and spinner #52

augnustin opened this issue Nov 18, 2015 · 0 comments

Comments

@augnustin
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant