lib/generators/components/tests/rspec_test_gen.rb in padrino-gen-0.2.0 vs lib/generators/components/tests/rspec_test_gen.rb in padrino-gen-0.2.1
- old
+ new
@@ -49,10 +49,10 @@
end
TEST
def generate_model_test(name)
rspec_contents = RSPEC_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"), rspec_contents
+ create_file app_root_path("test/models/#{name.to_s.downcase}_spec.rb"), rspec_contents
end
end
end
end