diff --git a/lib/minitest/chat_notifier_plugin.rb b/lib/minitest/chat_notifier_plugin.rb index 9cf754b..f8e8a2d 100644 --- a/lib/minitest/chat_notifier_plugin.rb +++ b/lib/minitest/chat_notifier_plugin.rb @@ -1,5 +1,6 @@ module Minitest def self.plugin_chat_notifier_init(options) + require "chat_notifier" Minitest.reporter << ChatNotifierPlugin.new(options[:io], options) end @@ -8,7 +9,7 @@ class ChatNotifierPlugin < SummaryReporter Summary = Data.define(:failed_examples) def report summary = Summary[(results.map{ |result| ExceptionLocation[result.source_location] })] - ChatNotifier.call(summary:) + ::ChatNotifier.call(summary:) end end end \ No newline at end of file