mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 23:08:49 +01:00
Fix some failing tests
This commit is contained in:
parent
b3a77270da
commit
828201dfe0
2 changed files with 3 additions and 5 deletions
|
|
@ -90,7 +90,7 @@ class LoginControllerTest < ActionController::TestCase
|
|||
def test_should_delete_token_on_logout
|
||||
login_as :other_user
|
||||
get :logout
|
||||
assert_equal @response.cookies["auth_token"], []
|
||||
assert_nil @response.cookies["auth_token"]
|
||||
end
|
||||
|
||||
def test_should_login_with_cookie
|
||||
|
|
|
|||
|
|
@ -466,10 +466,8 @@ class TodosControllerTest < ActionController::TestCase
|
|||
# check that the new_todo is in the tickler to show next month
|
||||
assert !new_todo.show_from.nil?
|
||||
|
||||
# use Time.zone.local and not today+1.month because the latter messes up
|
||||
# the timezone.
|
||||
next_month = Time.zone.local(today.year, today.month+1, today.day)
|
||||
assert_equal next_month.to_s(:db), new_todo.show_from.to_s(:db)
|
||||
next_month = today + 1.month
|
||||
assert_equal next_month.to_date.to_s(:db), new_todo.show_from.to_date.to_s(:db)
|
||||
end
|
||||
|
||||
def test_check_for_next_todo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue