diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-01-08 08:55:07 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-01-08 22:21:54 +0900 |
commit | af3eb5961e55a46b011be797e71f615f20f56686 (patch) | |
tree | 2c3329ce51dc71eeb8ae36f319f30add1b07279a /railties/test/generators/namespaced_generators_test.rb | |
parent | 9892d445bcff57f0a8bd8eb467cb7bf8c40a285b (diff) | |
download | rails-af3eb5961e55a46b011be797e71f615f20f56686.tar.gz rails-af3eb5961e55a46b011be797e71f615f20f56686.tar.bz2 rails-af3eb5961e55a46b011be797e71f615f20f56686.zip |
follow up to #18074
* ignore mailer suffix when generate test files
* add mailer suffix to view files
Diffstat (limited to 'railties/test/generators/namespaced_generators_test.rb')
-rw-r--r-- | railties/test/generators/namespaced_generators_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/test/generators/namespaced_generators_test.rb b/railties/test/generators/namespaced_generators_test.rb index a4dad1f2b4..aaf4593d77 100644 --- a/railties/test/generators/namespaced_generators_test.rb +++ b/railties/test/generators/namespaced_generators_test.rb @@ -173,20 +173,20 @@ class NamespacedMailerGeneratorTest < NamespacedGeneratorTestCase def test_invokes_default_template_engine run_generator - assert_file "app/views/test_app/notifier/foo.text.erb" do |view| - assert_match(%r(app/views/test_app/notifier/foo\.text\.erb), view) + assert_file "app/views/test_app/notifier_mailer/foo.text.erb" do |view| + assert_match(%r(app/views/test_app/notifier_mailer/foo\.text\.erb), view) assert_match(/<%= @greeting %>/, view) end - assert_file "app/views/test_app/notifier/bar.text.erb" do |view| - assert_match(%r(app/views/test_app/notifier/bar\.text\.erb), view) + assert_file "app/views/test_app/notifier_mailer/bar.text.erb" do |view| + assert_match(%r(app/views/test_app/notifier_mailer/bar\.text\.erb), view) assert_match(/<%= @greeting %>/, view) end end def test_invokes_default_template_engine_even_with_no_action run_generator ["notifier"] - assert_file "app/views/test_app/notifier" + assert_file "app/views/test_app/notifier_mailer" end end |