1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix time comparison. Mail#date returns DateTime not Time.

This commit is contained in:
Jeremy Kemper 2010-01-27 19:08:36 -08:00
parent 8c60acbea2
commit 187b3b0b48

View file

@ -100,7 +100,7 @@ class BaseTest < ActiveSupport::TestCase
end
test "mail() with bcc, cc, content_type, charset, mime_version, reply_to and date" do
@time = Time.now
@time = Time.now.beginning_of_day.to_datetime
email = BaseMailer.welcome(:bcc => 'bcc@test.lindsaar.net',
:cc => 'cc@test.lindsaar.net',
:content_type => 'multipart/mixed',