From 3bec75e96b32917dd1795b67a2c13e230e984b96 Mon Sep 17 00:00:00 2001 From: Scott Willson Date: Fri, 13 Mar 2009 15:20:52 -0700 Subject: [PATCH] If tested controller is missing, mention ActionController::TestCase in error message. --- actionpack/lib/action_controller/test_process.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index dbaec00..3400493 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -416,7 +416,7 @@ module ActionController #:nodoc: # understandable error message. %w(@controller @request @response).each do |iv_name| if !(instance_variable_names.include?(iv_name) || instance_variable_names.include?(iv_name.to_sym)) || instance_variable_get(iv_name).nil? - raise "#{iv_name} is nil: make sure you set it in your test's setup method." + raise "#{iv_name} is nil: use ActionController::TestCase#tests(controller_class) or make sure you set it in your test's setup method." end end -- 1.5.5.1