lib/generators/components/tests/shoulda_test_gen.rb in padrino-gen-0.2.0 vs lib/generators/components/tests/shoulda_test_gen.rb in padrino-gen-0.2.1
- old
+ new
@@ -54,10 +54,10 @@
end
TEST
def generate_model_test(name)
shoulda_contents = SHOULDA_MODEL_TEST.gsub(/!NAME!/, name.to_s.camelize).gsub(/!DNAME!/, name.downcase.underscore)
- create_file app_root_path("test/models/#{name.to_s.downcase}.rb"), shoulda_contents
+ create_file app_root_path("test/models/#{name.to_s.downcase}_test.rb"), shoulda_contents
end
end
end