diff options
Diffstat (limited to 'railties/generators/mailer/templates/unit_test.rb')
-rw-r--r-- | railties/generators/mailer/templates/unit_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/generators/mailer/templates/unit_test.rb b/railties/generators/mailer/templates/unit_test.rb index 3bf460907f..9b9b436df1 100644 --- a/railties/generators/mailer/templates/unit_test.rb +++ b/railties/generators/mailer/templates/unit_test.rb @@ -10,13 +10,11 @@ class <%= class_name %>Test < Test::Unit::TestCase ActionMailer::Base.deliveries = [] @expected = TMail::Mail.new - @expected.to = 'test@localhost' - @expected.from = 'test@localhost' end <% for action in actions -%> def test_<%= action %> - @expected.subject = '<%= class_name %>#<%= action %> test mail' + @expected.subject = '<%= class_name %>#<%= action %>' @expected.body = read_fixture('<%= action %>') @expected.date = Time.now |