summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Update spec/spec_helper.rb chefstyleTim Smith2020-09-091-1/+0
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> Co-authored-by: pete higgins <pete@peterhiggins.org>
* Update spec/mixlib/log/formatter_spec.rb Tim Smith2020-09-091-1/+1
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> Co-authored-by: pete higgins <pete@peterhiggins.org>
* Replace __FILE__ with __dir__ and other minor chefstyle fixesTim Smith2020-09-082-2/+2
| | | | | | A few new chefstyle rules to improve readability here. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update how we determine if time was loadedrequiresTim Smith2020-08-211-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Optimize our requiresTim Smith2020-08-213-5/+5
| | | | | | Avoid requiring things that are already defined. Rubygems is very slow at traversing the filesystem. Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fixesTim Smith2019-08-062-4/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Use $stdout instead of STDOUT for the default logdev.Ryan Davis2019-06-061-3/+10
| | | | | | | | | | | | This makes it testable using minitest/rspec IO assertions/expectations. STDOUT/STDERR should only be used to restore $stdout/$stderr if something goes haywire. The globals should be used for everyday use. Also bolstered an IO test to prevent the output from going to the rspec result output. Signed-off-by: Ryan Davis <zenspider@chef.io>
* Minor spec cleanup, using the block form of expect.Ryan Davis2019-06-051-4/+4
| | | | Signed-off-by: Ryan Davis <zenspider@chef.io>
* remove hashrocket syntaxLamont Granquist2018-06-261-12/+12
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix labelling (#37)Thom May2018-04-121-0/+10
| | | Signed-off-by: Thom May <thom@chef.io>
* Add appveyor config (#36)Thom May2018-04-111-11/+13
| | | | | | Add appveyor config Signed-off-by: Thom May <thom@may.lt>
* enable metadata to be got and setThom May2018-02-281-0/+6
| | | | Signed-off-by: Thom May <thom@chef.io>
* Logging method return nilOlle Jonsson2018-02-281-0/+13
| | | | | | - Fixes #21 Signed-off-by: Olle Jonsson <olle.jonsson@gmail.com>
* add trace levelThom May2018-02-221-13/+15
| | | | Signed-off-by: Thom May <thom@chef.io>
* add metadata to log messagesThom May2018-02-153-2/+65
| | | | Signed-off-by: Thom May <thom@chef.io>
* Add child loggersThom May2018-01-172-1/+61
| | | | | | | | Child loggers mean that we can create new instances of a logger for subsystems or specific classes, but still only have a single set of outputs. Signed-off-by: Thom May <thom@chef.io>
* RSpec: use 3.7, disable monkey patching modeOlle Jonsson2017-11-213-2/+6
| | | | Signed-off-by: Olle Jonsson <olle.jonsson@gmail.com>
* Less contrained versions and fix copyrightruby22Tim Smith2016-10-131-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Allow applications to query if they've got loggersThom May2016-08-121-0/+5
| | | | | | This is required to avoid the problems in #17 Signed-off-by: Thom May <thom@may.lt>
* fix chefstyleThom May2016-08-031-2/+2
| | | | Signed-off-by: Thom May <thom@may.lt>
* make travis-ci happyMax Horbul2016-03-181-4/+4
|
* clean up warnings related to the old rspec syntaxMax Horbul2016-03-181-2/+2
|
* File log devices opened by mixlib-log should be closed.Max Horbul2016-03-181-0/+32
| | | | | | | Ruby does not have a destructor concept so the opened files should be closed explicitely. The ruby logger which is used as a default logger here does not close logdevices it opened until #close method is called. When #rest! happens the logger instance gets destroyed but the #close method is not triggered. This patch should help to solve the problem described here: https://github.com/chef/chef/issues/3435
* Update to rspec 3.X formatcleanupTim Smith2016-03-012-26/+24
| | | | It's possible the specs need more cleanup. I only focuses on deprecation messages.
* Resolve chef style issuesTim Smith2016-03-013-19/+18
|
* Opscode -> ChefTim Smith2016-03-013-8/+8
|
* Ensure that arguments to Mixlib::Log#add are passed as is to all loggersKetan Padegaonkar2012-12-151-0/+9
|
* update spec tests for CHEF-2161Bryan McLellan2012-06-081-2/+2
|
* Add example for default base log level.Björn Albers2012-06-011-0/+7
|
* require explicit rspec for testingBryan McLellan2011-10-011-0/+1
|
* Add support for initializing Mixlib::Log with a loggerDaniel DeLeo2011-03-171-4/+36
|
* add multiple logger supportDaniel DeLeo2011-03-151-10/+10
|
* upgrade to rspec 2Daniel DeLeo2011-03-042-5/+2
|
* [CHEF-1382] allow the logger to be reinitializedDaniel DeLeo2010-10-131-5/+24
|
* making log level changes backward compatibleChristopher Brown2009-12-142-4/+43
|\
| * make log level changes backward compatibleChristopher Brown2009-12-142-4/+43
| |
* | fix log level settingChristopher Brown2009-12-111-3/+3
|/
* Add spec optsAJ Christensen2009-05-151-0/+4
|
* Convert to jewelerAJ Christensen2009-05-122-4/+8
|
* Initial commitAdam Jacob2009-03-113-0/+124