Permalink
Browse files

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

  • Loading branch information...
1 parent 8c60acb commit 187b3b0b4808c2daf015699dfa1e5a78605072a7 @jeremy jeremy committed Jan 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/test/base_test.rb
@@ -100,7 +100,7 @@ def custom_block(include_html=false)
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',

0 comments on commit 187b3b0

Please sign in to comment.