examples/simple-solo/solo.rb in minitest-chef-handler-0.5.0 vs examples/simple-solo/solo.rb in minitest-chef-handler-0.5.1
- old
+ new
@@ -1,6 +1,6 @@
require 'minitest-chef-handler'
-path = './{test/test_*,spec/*_spec}.rb'
+path = File.expand_path('{test/test_*,spec/*_spec}.rb', File.dirname(__FILE__))
report_handlers << MiniTest::Chef::Handler.new(:path => path)
cookbook_path File.expand_path('cookbooks', File.dirname(__FILE__))