You dont need to explicitly declare which controller youre testing when you follow the naming convention

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2007-11-30 18:17:21 +00:00
parent ea59e9d50a
commit b6d255559e
3 changed files with 0 additions and 6 deletions

View File

@@ -1,8 +1,6 @@
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
class <%= class_name %>ControllerTest < ActionController::TestCase
tests <%= class_name %>Controller
# Replace this with your real tests.
def test_truth
assert true

View File

@@ -1,8 +1,6 @@
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
tests <%= controller_class_name %>Controller
# Replace this with your real tests.
def test_truth
assert true

View File

@@ -1,8 +1,6 @@
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
tests <%= controller_class_name %>Controller
def test_should_get_index
get :index
assert_response :success