Skip to content

Commit

Permalink
Ensure ChatNotifier is loaded for minitest plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Sep 5, 2024
1 parent d3e9a84 commit 6709b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/minitest/chat_notifier_plugin.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Minitest
def self.plugin_chat_notifier_init(options)
require "chat_notifier"
Minitest.reporter << ChatNotifierPlugin.new(options[:io], options)
end

Expand All @@ -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

0 comments on commit 6709b38

Please sign in to comment.