test/test_exception_handler.rb in sidekiq-4.1.1 vs test/test_exception_handler.rb in sidekiq-4.1.2

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true require_relative 'helper' require 'sidekiq/exception_handler' require 'stringio' require 'logger' @@ -30,10 +31,10 @@ it "logs the exception to Sidekiq.logger" do Component.new.invoke_exception(:a => 1) @str_logger.rewind log = @str_logger.readlines - assert_match(/a=>1/, log[0], "didn't include the context") + assert_match(/"a":1/, log[0], "didn't include the context") assert_match(/Something didn't work!/, log[1], "didn't include the exception message") assert_match(/test\/test_exception_handler.rb/, log[2], "didn't include the backtrace") end describe "when the exception does not have a backtrace" do