make todo_from_rich_message time zone aware. test was failing.

This commit is contained in:
Reinier Balt 2014-01-26 15:05:27 +01:00
parent 76b0ec024a
commit 63af3bbcfa
3 changed files with 10 additions and 6 deletions

View file

@ -31,8 +31,8 @@ class TodoFromRichMessageTest < ActiveSupport::TestCase
assert_equal "notes", new_todo.notes
assert_equal context.id, new_todo.context_id
assert_equal project.id, new_todo.project_id
assert_equal "2013-10-14 00:00:00 +0100", new_todo.show_from.to_s
assert_equal "2013-10-17 00:00:00 +0100", new_todo.due.to_s
assert_equal Time.zone.parse("2013-10-14 00:00"). utc.to_s, new_todo.show_from.utc.to_s
assert_equal Time.zone.parse("2013-10-17 00:00"), new_todo.due.utc.to_s
assert_equal "starred, tag1, tag2", new_todo.tags.to_s
assert new_todo.starred?
end