Browse files

test case for #5867 => passes

  • Loading branch information...
1 parent 90a1721 commit 82ae14abe4cc16af39c0c7ba3c8895f9f3c60d78 @senny committed Nov 9, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 activerecord/test/cases/date_time_test.rb
View
6 activerecord/test/cases/date_time_test.rb
@@ -40,4 +40,10 @@ def test_assign_empty_time
topic.bonus_time = ''
assert_nil topic.bonus_time
end
+
+ def test_date_time_conditions
+ task = Task.create! :starting => DateTime.new(2001,2,3)
+ the_task = Task.where(:starting => DateTime.new(2001,2,3)).first
+ assert_equal task.id, the_task.id
+ end
end

0 comments on commit 82ae14a

Please sign in to comment.