diff options
-rw-r--r-- | spec/support/sometimes.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/sometimes.rb b/spec/support/sometimes.rb index 1ecbd36e..6a50f5ff 100644 --- a/spec/support/sometimes.rb +++ b/spec/support/sometimes.rb @@ -33,7 +33,8 @@ RSpec.configure do |config| message = proc do |color, text| colored = RSpec::Core::Formatters::ConsoleCodes.wrap(text, color) notification = RSpec::Core::Notifications::MessageNotification.new(colored) - RSpec.configuration.formatters.first.message(notification) + formatter = RSpec.configuration.formatters.first + formatter.message(notification) if formatter.respond_to?(:message) end retried_examples = RSpec.world.example_groups.map do |g| |