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