aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorGuo Xiang Tan <tgx_world@hotmail.com>2014-11-25 09:21:37 +0800
committerGuo Xiang Tan <tgx_world@hotmail.com>2014-11-25 09:21:37 +0800
commit7a47690a13f403278036f38b69465167466f6b5f (patch)
tree508512a1cedb1b2f352dd50a59b0dbad2224deee /railties/test
parent35628a44b2b8ccf6d1931222447c5ab27b19c7e7 (diff)
downloadrails-7a47690a13f403278036f38b69465167466f6b5f.tar.gz
rails-7a47690a13f403278036f38b69465167466f6b5f.tar.bz2
rails-7a47690a13f403278036f38b69465167466f6b5f.zip
Generate mailer layouts even if no action is given.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/mailer_generator_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/generators/mailer_generator_test.rb b/railties/test/generators/mailer_generator_test.rb
index 20fffd25de..bab15ce172 100644
--- a/railties/test/generators/mailer_generator_test.rb
+++ b/railties/test/generators/mailer_generator_test.rb
@@ -113,6 +113,8 @@ class MailerGeneratorTest < Rails::Generators::TestCase
def test_invokes_default_template_engine_even_with_no_action
run_generator ["notifier"]
assert_file "app/views/notifier"
+ assert_file "app/views/layouts/mailer.text.erb"
+ assert_file "app/views/layouts/mailer.html.erb"
end
def test_logs_if_the_template_engine_cannot_be_found