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