assert_equal nil deprecated: replace with assert_nil

This commit is contained in:
ericmoon 2018-08-02 10:57:11 -07:00
parent a94861ef81
commit fa7f2a777b
5 changed files with 14 additions and 14 deletions

View file

@ -224,7 +224,7 @@ class RecurringTodosControllerTest < ActionController::TestCase
assert_equal UserTime.new(user).midnight(target_date), new_todo.due
# show_from should be nil since now+4.days-10.days is in the past
assert_equal nil, new_todo.show_from
assert_nil new_todo.show_from
end
def test_last_sunday_of_march

View file

@ -32,9 +32,9 @@ class TodosControllerTest < ActionController::TestCase
p.save!
login_as(:admin_user)
get :index
assert_equal nil, assigns['project_not_done_counts'][projects(:timemachine).id]
assert_nil assigns['project_not_done_counts'][projects(:timemachine).id]
assert_equal 2, assigns['context_not_done_counts'][contexts(:call).id]
assert_equal nil, assigns['context_not_done_counts'][contexts(:lab).id]
assert_nil assigns['context_not_done_counts'][contexts(:lab).id]
end
def test_not_done_counts_after_hiding_project