lib/hanami/commands/generate/mailer.rb in hanami-0.9.2 vs lib/hanami/commands/generate/mailer.rb in hanami-1.0.0.beta1

- old
+ new

@@ -48,11 +48,11 @@ end # @since 0.x.x # @api private def map_templates - add_mapping("mailer_spec.rb.tt", mailer_spec_path) + add_mapping("mailer_spec.rb.#{test_framework.framework}.tt", mailer_spec_path) add_mapping("mailer.rb.tt", mailer_path) add_mapping("template.txt.tt", txt_template_path) add_mapping("template.html.tt", html_template_path) end @@ -108,10 +108,10 @@ def spec_root Pathname.new("spec") end def core_root - Pathname.new("lib").join(::File.basename(Dir.getwd)) + Pathname.new("lib").join(project_name) end end end end end