aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-13 23:47:01 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-13 23:47:01 +0000
commit0dfe122bb403e29def9bf58c0d21575ed771a918 (patch)
treec631779323e3809a5f43999d084f09708d95b9b7 /railties
parent458c5485a1165f8a3264040ea3761c0ceb1dc7f5 (diff)
downloadrails-0dfe122bb403e29def9bf58c0d21575ed771a918.tar.gz
rails-0dfe122bb403e29def9bf58c0d21575ed771a918.tar.bz2
rails-0dfe122bb403e29def9bf58c0d21575ed771a918.zip
Slightly less overzealous testing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-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 -%>