diff options
author | José Valim and Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-22 13:32:16 +1100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-22 13:32:16 +1100 |
commit | c9dc1ac95bc97800dd3deb82fe1cf6f98e27413d (patch) | |
tree | 2dc32ebb9d310fa8670050032217d54332f2ebbf /railties/lib | |
parent | 90bbed233e14957376d6c1985202c495b3af6ed4 (diff) | |
download | rails-c9dc1ac95bc97800dd3deb82fe1cf6f98e27413d.tar.gz rails-c9dc1ac95bc97800dd3deb82fe1cf6f98e27413d.tar.bz2 rails-c9dc1ac95bc97800dd3deb82fe1cf6f98e27413d.zip |
Updating functional tests to not compare equality with encoded, Mail::Message has an == operator
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/test_unit/mailer/templates/functional_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/test_unit/mailer/templates/functional_test.rb b/railties/lib/generators/test_unit/mailer/templates/functional_test.rb index 4de94076e9..d7366fea5f 100644 --- a/railties/lib/generators/test_unit/mailer/templates/functional_test.rb +++ b/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 -%> |