lib/minitest/queue.rb in ci-queue-0.20.1 vs lib/minitest/queue.rb in ci-queue-0.20.2
- old
+ new
@@ -104,10 +104,10 @@
module Queue
attr_writer :run_command_formatter, :project_root
def run_command_formatter
- @run_command_formatter ||= if defined?(Railties)
+ @run_command_formatter ||= if defined?(Rails) && defined?(Rails::TestUnitRailtie)
RAILS_RUN_COMMAND_FORMATTER
else
DEFAULT_RUN_COMMAND_FORMATTER
end
end