mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-20 16:06:10 +01:00
clean up whitespace
This commit is contained in:
parent
a1aaa283f1
commit
07a983ca1c
2 changed files with 4 additions and 4 deletions
|
|
@ -13,17 +13,17 @@ class PreferenceTest < ActiveSupport::TestCase
|
|||
def test_time_zone
|
||||
assert_equal 'London', @admin_user.preference.time_zone
|
||||
end
|
||||
|
||||
|
||||
def test_show_project_on_todo_done
|
||||
assert @other_user.preference.show_project_on_todo_done
|
||||
assert !@admin_user.preference.show_project_on_todo_done
|
||||
end
|
||||
|
||||
|
||||
def test_parse_date
|
||||
date = Time.new(2007, 05, 20).in_time_zone(@admin_user.preference.time_zone).at_midnight
|
||||
assert_equal date.to_s, @admin_user.preference.parse_date('20/5/2007').to_s
|
||||
end
|
||||
|
||||
|
||||
def test_parse_date_returns_nil_if_string_is_empty
|
||||
assert_nil @admin_user.preference.parse_date('')
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue