test/loggable_test.rb in semantic_logger-4.0.0 vs test/loggable_test.rb in semantic_logger-4.1.0
- old
+ new
@@ -74,10 +74,10 @@
describe 'logger' do
before do
@time = Time.new
@io = StringIO.new
- @appender = SemanticLogger::Appender::File.new(@io)
+ @appender = SemanticLogger::Appender::File.new(io: @io)
SemanticLogger.default_level = :trace
@mock_logger = MockLogger.new
@appender = SemanticLogger.add_appender(logger: @mock_logger)
@hash = {session_id: 'HSSKLEU@JDK767', tracking_number: 12345}
@hash_str = @hash.inspect.sub("{", "\\{").sub("}", "\\}")