diff options
author | Mislav Marohnić <mislav.marohnic@gmail.com> | 2008-04-18 17:10:58 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-04-18 17:10:58 -0500 |
commit | dfdb9f738e9842752c340634622624544efe18c1 (patch) | |
tree | 48bf88138e05da9b270f947f3b0d1c8b5eda9024 /railties/lib/rails_generator/generators/components/mailer | |
parent | 986aec5dbbdfb578945e706cbe6a54c4f06640e5 (diff) | |
download | rails-dfdb9f738e9842752c340634622624544efe18c1.tar.gz rails-dfdb9f738e9842752c340634622624544efe18c1.tar.bz2 rails-dfdb9f738e9842752c340634622624544efe18c1.zip |
Cleanup generator tests by extracting repeated code into generator_test_helper. Add test for mailer generator.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'railties/lib/rails_generator/generators/components/mailer')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb b/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb index 3ff4f03972..dc1202d7c8 100644 --- a/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +++ b/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb @@ -11,12 +11,8 @@ class MailerGenerator < Rails::Generator::NamedBase m.directory File.join('test/fixtures', file_path) # Mailer class and unit test. - m.template "mailer.rb", File.join('app/models', - class_path, - "#{file_name}.rb") - m.template "unit_test.rb", File.join('test/unit', - class_path, - "#{file_name}_test.rb") + m.template "mailer.rb", File.join('app/models', class_path, "#{file_name}.rb") + m.template "unit_test.rb", File.join('test/unit', class_path, "#{file_name}_test.rb") # View template and fixture for each action. actions.each do |action| |