aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb
diff options
context:
space:
mode:
authorMathias Meyer <meyer@paperplanes.de>2008-09-30 23:30:30 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-10-30 12:57:52 +0100
commit7418d367f0ac4a4ac0ab4604c1b10db78efc6865 (patch)
treee3ec29741f892566ccda80455af07245f7948db9 /railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb
parentdffc2e2b64c89fdb0303bd18eccc7351ed0a0a58 (diff)
downloadrails-7418d367f0ac4a4ac0ab4604c1b10db78efc6865.tar.gz
rails-7418d367f0ac4a4ac0ab4604c1b10db78efc6865.tar.bz2
rails-7418d367f0ac4a4ac0ab4604c1b10db78efc6865.zip
Fixed plugin generator so that generated unit tests would subclass ActiveSupport::TestCase, also introduced a helper script to reduce the needed require statements. [#1137 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
Diffstat (limited to 'railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb')
-rw-r--r--railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb b/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb
index 6ede6ef1d2..3e0bc29d3a 100644
--- a/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb
+++ b/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb
@@ -1,6 +1,6 @@
-require 'test/unit'
+require 'test_helper'
-class <%= class_name %>Test < Test::Unit::TestCase
+class <%= class_name %>Test < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true