lib/minitest/queue.rb in ci-queue-0.9.2 vs lib/minitest/queue.rb in ci-queue-0.10.0
- old
+ new
@@ -114,6 +114,11 @@
end
end
end
MiniTest.singleton_class.prepend(MiniTest::Queue)
-MiniTest::Test.prepend(MiniTest::Requeueing)
+if defined? MiniTest::Result
+ MiniTest::Result.prepend(MiniTest::Requeueing)
+else
+ MiniTest::Test.prepend(MiniTest::Requeueing)
+ MiniTest::Test.send(:alias_method, :klass, :class)
+end