Skip to content

Commit

Permalink
fix: Minitest template defers calling autorun until after tests are l…
Browse files Browse the repository at this point in the history
…oaded (#246)
  • Loading branch information
dazuma authored Oct 31, 2023
1 parent 616e354 commit 1cac35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toys/lib/toys/templates/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def run # rubocop:disable all
end
tests.uniq!
end
code = ["require 'minitest/autorun'"] + tests.map { |file| "load '#{file}'" }
code = tests.map { |file| "load '#{file}'" } + ["require 'minitest/autorun'"]
ruby_args << "-e" << code.join("\n")

ruby_args << "--"
Expand Down

0 comments on commit 1cac35a

Please sign in to comment.