diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-06-12 20:10:50 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-06-12 20:10:50 -0500 |
commit | e536d4d8881263d1d0c26a9d5ff69e1a2875c63f (patch) | |
tree | 5a51c05937430cfe211665464998b26d344300a9 /railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb | |
parent | f74ba37f4e4175d5a1b31da59d161b0020b58e94 (diff) | |
download | rails-e536d4d8881263d1d0c26a9d5ff69e1a2875c63f.tar.gz rails-e536d4d8881263d1d0c26a9d5ff69e1a2875c63f.tar.bz2 rails-e536d4d8881263d1d0c26a9d5ff69e1a2875c63f.zip |
Changed all generated tests to use the test/do declaration style [DHH]
Diffstat (limited to 'railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb b/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb index 0b4b2ec60a..1b7bcfef08 100644 --- a/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +++ b/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class <%= class_name %>Test < ActionMailer::TestCase tests <%= class_name %> <% for action in actions -%> - def test_<%= action %> + test "<%= action %>" do @expected.subject = '<%= class_name %>#<%= action %>' @expected.body = read_fixture('<%= action %>') @expected.date = Time.now @@ -14,7 +14,7 @@ class <%= class_name %>Test < ActionMailer::TestCase <% end -%> <% if actions.blank? -%> # replace this with your real tests - def test_truth + test "the truth" do assert true end <% end -%> |