1
0
Fork 0
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:
Jeremy Kemper 2008-03-29 18:41:10 +00:00
parent 827b529459
commit e8170805df
7 changed files with 7 additions and 7 deletions

View file

@ -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.

View file

@ -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

View file

@ -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 %>

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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