Skip to content

Commit

Permalink
Slightly less overzealous testing
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Dec 13, 2004
1 parent 458c548 commit 0dfe122
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions railties/generators/mailer/templates/unit_test.rb
Expand Up @@ -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 -%>
Expand Down

0 comments on commit 0dfe122

Please sign in to comment.