aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/generators/mailer/templates/unit_test.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/railties/generators/mailer/templates/unit_test.rb b/railties/generators/mailer/templates/unit_test.rb
index 9b9b436df1..70fd3afe37 100644
--- a/railties/generators/mailer/templates/unit_test.rb
+++ b/railties/generators/mailer/templates/unit_test.rb
@@ -18,13 +18,7 @@ class <%= class_name %>Test < Test::Unit::TestCase
@expected.body = read_fixture('<%= action %>')
@expected.date = Time.now
- created = nil
- assert_nothing_raised { created = <%= class_name %>.create_<%= action %>(@expected.date) }
- assert_not_nil created
- assert_equal @expected.encoded, created.encoded
-
- assert_nothing_raised { <%= class_name %>.deliver_<%= action %>(@expected.date) }
- assert_equal @expected.encoded, ActionMailer::Base.deliveries.first.encoded
+ assert_equal @expected.encoded, <%= class_name %>.create_<%= action %>(@expected.date).encoded
end
<% end -%>