Skip to content

Commit

Permalink
Update update_box_area_and_center_columns_job_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jan 10, 2025
1 parent aabceb3 commit 8bd04a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jobs/update_box_area_and_center_columns_job_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit 8bd04a8

Please sign in to comment.