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

new_test_path #25

Open
alexthegoodman opened this issue Nov 21, 2013 · 1 comment
Open

new_test_path #25

alexthegoodman opened this issue Nov 21, 2013 · 1 comment

Comments

@alexthegoodman
Copy link

Hey! If you guys could help, it'd be appreciated. I'm getting this error in the terminal when I try to send out an initial test HIT:

$ rake turkee:post_hit["https://www.yourapp.com","Please complete our survey","Tell us your favorite color.","Test",100,0.05,5,1]
rake aborted!
undefined method new_test_path' for #<ActionDispatch::Integration::Session:0x007fe66453bd88> /usr/local/rvm/gems/ruby-2.0.0-p247/gems/actionpack-4.0.0/lib/action_dispatch/testing/assertions/routing.rb:171:inmethod_missing'
/Users/macuser/.bundler/ruby/2.0.0/turkee-8cfe9bd96f2f/lib/models/turkee_task.rb:248:in form_url' /Users/macuser/.bundler/ruby/2.0.0/turkee-8cfe9bd96f2f/lib/models/turkee_task.rb:241:inbuild_url'
/Users/macuser/.bundler/ruby/2.0.0/turkee-8cfe9bd96f2f/lib/models/turkee_task.rb:71:in create_hit' /Users/macuser/.bundler/ruby/2.0.0/turkee-8cfe9bd96f2f/lib/tasks/turkee.rb:7:inblock (2 levels) in <top (required)>'
Tasks: TOP => turkee:post_hit

I'm having difficulty assessing how to deal with new_test_path. If you need more information, or if this an error that isn't the result of my doing, please let me know!

Thanks guys, and thanks for your work on this nice library

@aantix
Copy link
Owner

aantix commented Nov 27, 2013

In the above example, it assumes that there's a resource called "Test". Do you have that setup?

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

2 participants