Skip to content

Commit

Permalink
fix for legacy rails 6 test
Browse files Browse the repository at this point in the history
  • Loading branch information
danmayer committed Oct 16, 2024
1 parent c062b49 commit 1b0e3b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/coverband/integrations/resque_worker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def setup
assert_equal 1, report[Coverband::EAGER_TYPE][relative_job_file]["data"][6]
else
assert_equal 0, report[Coverband::EAGER_TYPE][relative_job_file]["data"][6]
assert_equal 1, report[Coverband::RUNTIME_TYPE][relative_job_file]["data"][6] if report[Coverband::RUNTIME_TYPE]
if report[Coverband::RUNTIME_TYPE] && report[Coverband::RUNTIME_TYPE][relative_job_file]
assert_equal 1, report[Coverband::RUNTIME_TYPE][relative_job_file]["data"][6]
end
end
end
end
Expand Down

0 comments on commit 1b0e3b3

Please sign in to comment.