summaryrefslogtreecommitdiff
path: root/lib/generators/nifty/scaffold/templates/tests/testunit/model.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generators/nifty/scaffold/templates/tests/testunit/model.rb')
-rw-r--r--lib/generators/nifty/scaffold/templates/tests/testunit/model.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/generators/nifty/scaffold/templates/tests/testunit/model.rb b/lib/generators/nifty/scaffold/templates/tests/testunit/model.rb
new file mode 100644
index 0000000..09b835c
--- /dev/null
+++ b/lib/generators/nifty/scaffold/templates/tests/testunit/model.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class <%= class_name %>Test < ActiveSupport::TestCase
+ def test_should_be_valid
+ assert <%= class_name %>.new.valid?
+ end
+end