aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/model/templates/unit_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/generators/model/templates/unit_test.rb')
-rw-r--r--railties/generators/model/templates/unit_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/generators/model/templates/unit_test.rb b/railties/generators/model/templates/unit_test.rb
new file mode 100644
index 0000000000..6162d4cf96
--- /dev/null
+++ b/railties/generators/model/templates/unit_test.rb
@@ -0,0 +1,11 @@
+require File.dirname(__FILE__) + '/../test_helper'
+require '<%= file_name %>'
+
+class <%= class_name %>Test < Test::Unit::TestCase
+ fixtures :<%= table_name %>
+
+ # Replace this with your real tests.
+ def test_truth
+ assert true
+ end
+end