mirror of
https://github.com/github/rails.git
synced 2026-01-30 16:58:15 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user