mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-05 16:58:50 +01:00
A few fixes after more thorough review.
This commit is contained in:
parent
778427405a
commit
f52a2eafa8
7 changed files with 13 additions and 13 deletions
|
|
@ -20,7 +20,7 @@ class PreferenceTest < Test::Rails::TestCase
|
|||
end
|
||||
|
||||
def test_parse_date
|
||||
assert_equal Date.new(2007, 5, 20).to_s, @admin_user.preference.parse_date('20/5/2007').to_s
|
||||
assert_equal @admin_user.at_midnight(Date.new(2007, 5, 20)).to_s, @admin_user.preference.parse_date('20/5/2007').to_s
|
||||
end
|
||||
|
||||
def test_parse_date_returns_nil_if_string_is_empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue