diff options
Diffstat (limited to 'spec/ruby/spec_helper.rb')
-rw-r--r-- | spec/ruby/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/spec_helper.rb b/spec/ruby/spec_helper.rb index 3404521c03..af1c385878 100644 --- a/spec/ruby/spec_helper.rb +++ b/spec/ruby/spec_helper.rb @@ -1,5 +1,5 @@ use_realpath = File.respond_to?(:realpath) -root = File.dirname(__FILE__) +root = __dir__ dir = "fixtures/code" CODE_LOADING_DIR = use_realpath ? File.realpath(dir, root) : File.expand_path(dir, root) |