acceptance/tests/load_path_bootstrap.rb in beaker-4.42.0 vs acceptance/tests/load_path_bootstrap.rb in beaker-5.0.0
- old
+ new
@@ -3,8 +3,8 @@
# `acceptance/config/acceptance_options.rb` was not specified via the
# `--options-file` command-line argument.
begin
require 'helpers/test_helper'
rescue LoadError
- $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
+ $LOAD_PATH << File.expand_path(File.join(__dir__, '..', 'lib'))
require 'helpers/test_helper'
end