When I run my functional tests, they throw an error with the following
message:
ActionView::TemplateError: Missing template /_captcha.erb in view path
app/views:test/vendor/plugins/brain_buster/views/brain_busters
On line #23 of app/views/contacts/_form.html.erb
20: <%= f.label :message %><br />
21: <%= f.text_area :message %>
22: </div>
23: <%= render :partial => '/captcha' unless action_name ==
'edit' %>
24: <div><%= f.submit "Submit" %></div>
25: <% end %>
app/views/contacts/_form.html.erb:23
app/views/contacts/_form.html.erb:1
app/views/contacts/edit.html.erb:1
app/controllers/contacts_controller.rb:41:in `update'
functional/contacts_controller_test.rb:80:in
`__bind_1244348412_114'
/usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/
lib/shoulda/context.rb:271:in `call'
/usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/
lib/shoulda/context.rb:271:in `run_current_setup_blocks'
/usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/
lib/shoulda/context.rb:270:in `each'
/usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/
lib/shoulda/context.rb:270:in `run_current_setup_blocks'
/usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/
lib/shoulda/context.rb:252:in `test: on PUT to :update with invalid
params should respond with success. '
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run'
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each'
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run'
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run'
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each'
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run'
/usr/local/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:
46:in `run_suite'
/usr/local/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:
67:in `start_mediator'
/usr/local/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:
41:in `start'
/usr/local/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:
29:in `run'
/usr/local/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'
/usr/local/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
/usr/local/lib/ruby/1.8/test/unit.rb:278
functional/contacts_controller_test.rb:88
I've checked to make sure the partial is in the right location, it is
in this directory:
/vendor/plugins/brain_buster/views/brain_busters/_captcha.html.erb
Any ideas as to why the test can't find the partial? It works fine
when I test it manually (via the browser).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---