Permalink
Browse files

Updating functional tests to not compare equality with encoded, Mail:…

…:Message has an == operator
  • Loading branch information...
1 parent 90bbed2 commit c9dc1ac95bc97800dd3deb82fe1cf6f98e27413d @mikel mikel committed Jan 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/generators/test_unit/mailer/templates/functional_test.rb
@@ -7,7 +7,7 @@ class <%= class_name %>Test < ActionMailer::TestCase
@expected.body = read_fixture('<%= action %>')
@expected.date = Time.now
- assert_equal @expected.encoded, <%= class_name %>.create_<%= action %>(@expected.date).encoded
+ assert_equal @expected, <%= class_name %>.create_<%= action %>(@expected.date)
end
<% end -%>

0 comments on commit c9dc1ac

Please sign in to comment.