diff --git a/Manifest.txt b/Manifest.txt index 95d48a15..eca81440 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -12,6 +12,7 @@ lib/minitest/benchmark.rb lib/minitest/compress.rb lib/minitest/expectations.rb lib/minitest/hell.rb +lib/minitest/manual_plugins.rb lib/minitest/mock.rb lib/minitest/parallel.rb lib/minitest/pride.rb diff --git a/lib/minitest/manual_plugins.rb b/lib/minitest/manual_plugins.rb new file mode 100644 index 00000000..1f3d6529 --- /dev/null +++ b/lib/minitest/manual_plugins.rb @@ -0,0 +1,16 @@ +require "minitest" + +ARGV << "--no-plugins" + +module Minitest + ## + # Manually load plugins by name. + + def self.load *names + names.each do |name| + require "minitest/#{name}_plugin" + + self.extensions << name.to_s + end + end +end