diff options
Diffstat (limited to 'railties/lib/generators/test_unit/plugin/templates')
-rw-r--r-- | railties/lib/generators/test_unit/plugin/templates/%file_name%_test.rb.tt | 8 | ||||
-rw-r--r-- | railties/lib/generators/test_unit/plugin/templates/test_helper.rb | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/railties/lib/generators/test_unit/plugin/templates/%file_name%_test.rb.tt b/railties/lib/generators/test_unit/plugin/templates/%file_name%_test.rb.tt new file mode 100644 index 0000000000..3e0bc29d3a --- /dev/null +++ b/railties/lib/generators/test_unit/plugin/templates/%file_name%_test.rb.tt @@ -0,0 +1,8 @@ +require 'test_helper' + +class <%= class_name %>Test < ActiveSupport::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end diff --git a/railties/lib/generators/test_unit/plugin/templates/test_helper.rb b/railties/lib/generators/test_unit/plugin/templates/test_helper.rb new file mode 100644 index 0000000000..2ca36a1e44 --- /dev/null +++ b/railties/lib/generators/test_unit/plugin/templates/test_helper.rb @@ -0,0 +1,3 @@ +require 'rubygems' +require 'test/unit' +require 'active_support' |