summaryrefslogtreecommitdiff
path: root/spec/unit/application/knife_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix knife plugin path searchingLamont Granquist2014-12-031-2/+6
| | | | | | | | | | | | | | | | | | Unreleased Chef 12.0.0 bug caught in testing where only the searching upwards from PWD to find .chef in order to get the plugin path for knife was busted. The chef_config_dir was being used before load_config was being called, so it was nil, which broke finding knife plugins. This was fixed by adding some lazy initialization of the config_loader object itself and the chef_config_dir. The reset_config_loader! is added entirely to reset the global state for unit testing. This whole class is a bit horrible and needs to have all its global state removed from it, class methods removed, class ivars and the class-variable-in-a-class-method-for-inheritance-lolwut needs to be removed. Unfortunately, that requires some delicate surgery because Chef::Knife gets used as a public API, and is beyond the scope of gettting Chef 12 shipped.
* Update to RSpec 3.Claire McQuin2014-10-291-31/+31
|
* Prevent knife application test from reloading codedanielsdeleo2014-04-241-0/+3
|
* Prevent tests from overriding rspec's trap handlerdanielsdeleo2014-04-241-0/+1
| | | | Otherwise you cannot ctrl-C the tests.
* s/mock\(/double(/gLamont Granquist2014-01-291-2/+2
|
* s/stub!/stub/gLamont Granquist2014-01-291-3/+3
| | | | fix deprecation warnings
* rephrase messages related to colored output options change.kaustubh-d2013-05-131-1/+1
|
* test case for colored output flag for knifekaustubh-d2013-05-131-0/+12
|
* [CHEF-3497] apply config in the desired orderdanielsdeleo2013-01-141-0/+5
| | | | | | | | | Takes advantage of new mixlib-cli option to keep default values from the mixlib-cli DSL separate from user-supplied values. Config settings are merged: 1. Defaults from mixlib-cli DSL 2. Settings from Chef::Config[:knife] 3. Values from CLI options
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+152
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!