Skip to content

Commit fab6c52

Browse files
committed
Use File.join instead of hard-coding path
1 parent 14d2231 commit fab6c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/support/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'chefspec/berkshelf'
44
require 'chefspec/cacher'
55
require 'pathname'
6-
Dir.glob(File.dirname(__FILE__) + '/**/*.rb', &method(:require))
6+
Dir.glob(File.join(__dir__, '**', '*.rb'), &method(:require))
77

88
ChefSpec::Coverage.start!
99

0 commit comments

Comments
 (0)