mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Generated tests rely on test dir in load path rather than File.dirname shenanigans. ruby -Itest test/unit/foo_test.rb to run a test by hand (that's a capital I as in Island).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
827b529459
commit
e8170805df
7 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
||||
require 'test_helper'
|
||||
|
||||
class <%= class_name %>ControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require "#{File.dirname(__FILE__)}<%= '/..' * class_nesting_depth %>/../test_helper"
|
||||
require 'test_helper'
|
||||
|
||||
class <%= class_name %>Test < ActionController::IntegrationTest
|
||||
# fixtures :your, :models
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
||||
require 'test_helper'
|
||||
|
||||
class <%= class_name %>Test < ActionMailer::TestCase
|
||||
tests <%= class_name %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
||||
require 'test_helper'
|
||||
|
||||
class <%= class_name %>Test < ActiveSupport::TestCase
|
||||
# Replace this with your real tests.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
||||
require 'test_helper'
|
||||
|
||||
class <%= class_name %>ObserverTest < Test::Unit::TestCase
|
||||
# Replace this with your real tests.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
||||
require 'test_helper'
|
||||
|
||||
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
|
||||
# Replace this with your real tests.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
||||
require 'test_helper'
|
||||
|
||||
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
|
||||
def test_should_get_index
|
||||
|
|
Loading…
Reference in a new issue