aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-03-29 18:41:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-03-29 18:41:10 +0000
commite8170805df1a32119db9d328daee1239b338ac71 (patch)
tree6776509fd30e3e955a31908577730109bbeaf8d6 /railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb
parent827b529459c652f21a0122090393209446567b37 (diff)
downloadrails-e8170805df1a32119db9d328daee1239b338ac71.tar.gz
rails-e8170805df1a32119db9d328daee1239b338ac71.tar.bz2
rails-e8170805df1a32119db9d328daee1239b338ac71.zip
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
Diffstat (limited to 'railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb')
-rw-r--r--railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb b/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb
index 61688aee4e..149b987d81 100644
--- a/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb
+++ b/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb
@@ -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