Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Slightly less overzealous testing

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 0dfe122bb403e29def9bf58c0d21575ed771a918 1 parent 458c548
@dhh dhh authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 railties/generators/mailer/templates/unit_test.rb
View
8 railties/generators/mailer/templates/unit_test.rb
@@ -18,13 +18,7 @@ def test_<%= action %>
@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 -%>
Please sign in to comment.
Something went wrong with that request. Please try again.