test/unit/logger_tests.rb in logsly-1.0.1 vs test/unit/logger_tests.rb in logsly-1.0.2

- old
+ new

@@ -55,14 +55,14 @@ class AppenderTests < LoggerTests setup do Logsly.stdout 'my_stdout' Logsly.file('my_file') do |logger| - path "development-#{logger.log_type}.log" + path "log/development-#{logger.log_type}.log" end Logsly.file('my_other_file') do |logger| - path "other-#{logger.log_type}.log" + path "log/other-#{logger.log_type}.log" end Logsly.syslog('my_syslog') do |logger| identity "my_syslog_logger-#{logger.log_type}" end end @@ -75,10 +75,10 @@ should "add a named file appender" do log = TestLogger.new(:test, :outputs => 'my_file') filelog = extract_appender_from_logger(log, :file) assert_includes_appender Logging::Appenders::File, log - assert_equal 'development-test.log', filelog.name + assert_equal 'log/development-test.log', filelog.name end should "add a named syslog appender" do log = TestLogger.new(:test, :outputs => 'my_syslog') assert_includes_appender Logging::Appenders::Syslog, log