From 8bd04a8b224b8a3e851d8dec318568697aebd13b Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Thu, 9 Jan 2025 23:08:58 -0800 Subject: [PATCH] Update update_box_area_and_center_columns_job_test.rb --- test/jobs/update_box_area_and_center_columns_job_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/jobs/update_box_area_and_center_columns_job_test.rb b/test/jobs/update_box_area_and_center_columns_job_test.rb index 3717cc190b..1781e7aa7d 100644 --- a/test/jobs/update_box_area_and_center_columns_job_test.rb +++ b/test/jobs/update_box_area_and_center_columns_job_test.rb @@ -11,7 +11,7 @@ def test_update_box_area_and_center_columns job.perform assert_empty(Observation.in_box_of_max_area.where(location_lat: nil)) - # Note: All locations should already have a box_area, so this was nil before + # NOTE: All locations may already have a box_area, so probably nil before assert_empty(Location.where(box_area: nil)) end @@ -22,7 +22,7 @@ def test_update_box_area_dry_run job = UpdateBoxAreaAndCenterColumnsJob.new _loc_count, obs_count = job.perform(dry_run: true) - # check it again + # check it again and be sure it did NOT update the obs needs_update = Observation.in_box_of_max_area.where(location_lat: nil) assert_not_empty(needs_update) assert_equal(obs_count, needs_update.count)