test/messenging_test.rb in cliutils-1.0.6 vs test/messenging_test.rb in cliutils-1.0.7

- old
+ new

@@ -37,13 +37,13 @@ file_logger = Logger.new(@file1path) file_logger.formatter = proc do |severity, datetime, progname, msg| "#{ severity }: #{ msg }\n" end - messenger.attach(file_logger) + messenger.attach(FILE: file_logger) messenger.send(:info, 'Info test') messenger.send(:error, 'Error test') - messenger.detach(file_logger) + messenger.detach(:FILE) messenger.send(:warn, 'Warn test') File.open(@file1path, 'r') do |f| assert_output("INFO: Info test\nERROR: Error test\n") { puts f.read.lines.to_a[1..-1].join } end