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
ActionView::TemplateError: Called id for nil, which would mistakenly
be 4 – if you really wanted the id of nil, use object_id
On line #4 of vendor/plugins/brain_buster/views/brain_busters/
_captcha.html.erb
1: <% unless captcha_passed? %>
2: <span id="brain_buster_captcha" class="<%= if
last_captcha_attempt_failed? then ‘captcha_failed’ end %>">
3:
4: <%= hidden_field_tag :captcha_id, @captcha.id
%>
5:
6:
7: Spam protection: <%= @captcha.question
%>
vendor/plugins/brain_buster/views/brain_busters/
_captcha.html.erb:4
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_1244416417_125477’
/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:inrun_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:inrun_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 assign @contact with a kind of Contact. ' /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:34:inrun’
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:in each' /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:inrun’
/usr/local/lib/ruby/1.8/test/unit/testsuite.rb:34:in run' /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:33:ineach’
/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:inrun_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:instart’
/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:inrun’
/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 feel like after that point I’m just chasing the white rabbit, seems
that once I figure out the initial problem, things should be okay.
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