Skip to content

Commit

Permalink
Slightly simplified minitest integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 20, 2023
1 parent d514774 commit ac43523
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/covered/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ def run(*)
end

if $covered.record?
class << Minitest
prepend Covered::Minitest
end
Minitest.singleton_class.prepend(Covered::Minitest)

Minitest.after_run do
$covered.finish
Expand Down

0 comments on commit ac43523

Please sign in to comment.