aantix / turkee

Blurring the line between Mechanical Turk, Rails and usability testing..
http://github.com/aantix/turkee
MIT License
152 stars 39 forks source link

new_test_path #25

Open alexthegoodman opened 10 years ago

alexthegoodman commented 10 years ago

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 commented 10 years ago

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