test/loggable_test.rb in semantic_logger-3.2.1 vs test/loggable_test.rb in semantic_logger-3.3.0

- old
+ new

@@ -95,20 +95,20 @@ it "log #{level} information with class attribute" do SemanticLogger.stub(:backtrace_level_index, 0) do SemanticLogger.stub(:appenders, [@appender]) do TestAttribute.logger.send(level, "hello #{level}", @hash) SemanticLogger.flush - assert_match /\d+-\d+-\d+ \d+:\d+:\d+.\d+ \w \[\d+:#{@thread_name} loggable_test.rb:\d+\] TestAttribute -- hello #{level} -- #{@hash_str}/, @mock_logger.message + assert_match(/\d+-\d+-\d+ \d+:\d+:\d+.\d+ \w \[\d+:#{@thread_name} loggable_test.rb:\d+\] TestAttribute -- hello #{level} -- #{@hash_str}/, @mock_logger.message) end end end it "log #{level} information with instance attribute" do SemanticLogger.stub(:backtrace_level_index, 0) do SemanticLogger.stub(:appenders, [@appender]) do TestAttribute.new.logger.send(level, "hello #{level}", @hash) SemanticLogger.flush - assert_match /\d+-\d+-\d+ \d+:\d+:\d+.\d+ \w \[\d+:#{@thread_name} loggable_test.rb:\d+\] TestAttribute -- hello #{level} -- #{@hash_str}/, @mock_logger.message + assert_match(/\d+-\d+-\d+ \d+:\d+:\d+.\d+ \w \[\d+:#{@thread_name} loggable_test.rb:\d+\] TestAttribute -- hello #{level} -- #{@hash_str}/, @mock_logger.message) end end end end end