mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
make todo_from_rich_message time zone aware. test was failing.
This commit is contained in:
parent
76b0ec024a
commit
63af3bbcfa
3 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue