lib/generators/contentment_generator.rb in contentment-0.3.2 vs lib/generators/contentment_generator.rb in contentment-0.4.0
- old
+ new
@@ -23,9 +23,10 @@
if File.exists?(content_model)
puts "Well, Fuck."
# Need to figure out how to ask the user if they would like to overwrite their model.
else
template 'content.rb', content_model
+ template 'content_test.rb', 'test/unit/content_test.rb'
end
contents_controller = 'app/controllers/contents_controller.rb'
if File.exists?(contents_controller)
puts "Damn, him too?"
\ No newline at end of file