test/support/test_case.rb in knife-solo-0.4.3 vs test/support/test_case.rb in knife-solo-0.5.0
- old
+ new
@@ -10,11 +10,12 @@
def knife_command(cmd_class, *args)
cmd_class.load_deps
command = cmd_class.new(args)
command.ui.stubs(:msg)
- command.ui.stubs(:err)
+ command.ui.stubs(:warn)
Chef::Config[:verbosity] = 0
+ command.config[:config_file] = "#{__dir__}/knife.rb"
command.configure_chef
command
end
# Assert that the specified command or block raises SystemExit