mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-05 16:58:50 +01:00
Remove codejunk
Extra whitespace, explicit returns, and an extra begin/end pair are all gone.
This commit is contained in:
parent
b1fb1dd326
commit
1c2de3fd5a
2 changed files with 15 additions and 17 deletions
|
|
@ -37,11 +37,11 @@ class TodoCreateParamsHelperTest < ActiveSupport::TestCase
|
|||
|
||||
def test_parse_dates_parses_show_from_date_based_on_prefs
|
||||
params = { 'todo' => { 'show_from' => '20/05/07', 'due' => '23/5/07'}}
|
||||
|
||||
|
||||
user = users(:admin_user)
|
||||
prefs = user.prefs
|
||||
prefs.date_format = "%d/%m/%y" # make sure the format matches the above
|
||||
|
||||
|
||||
params_helper = Todos::TodoCreateParamsHelper.new(params, user)
|
||||
params_helper.parse_dates()
|
||||
assert_equal Date.new(2007, 5, 20), params_helper.show_from.to_date
|
||||
|
|
@ -49,7 +49,7 @@ class TodoCreateParamsHelperTest < ActiveSupport::TestCase
|
|||
|
||||
def test_parse_dates_parses_due_date_based_on_prefs
|
||||
params = { 'todo' => { 'show_from' => '20/5/07', 'due' => '23/5/07'}}
|
||||
|
||||
|
||||
user = users(:admin_user)
|
||||
prefs = user.prefs
|
||||
prefs.date_format = "%d/%m/%y" # make sure the format matches the above
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue