1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

fix(rubocop): Use __dir__ for Style/ExpandPathArguments [ci skip]

This commit is contained in:
Kapil Sachdev 2020-09-04 20:15:50 +05:30 committed by Elliot Winkler
parent a4b61370c8
commit 4d7cedc5af
5 changed files with 6 additions and 6 deletions

View file

@ -30,8 +30,8 @@ class CustomPlan < Zeus::Plan
require 'bundler/setup'
$LOAD_PATH << File.expand_path('../lib', __FILE__)
$LOAD_PATH << File.expand_path('../spec', __FILE__)
$LOAD_PATH << File.expand_path('lib', __dir__)
$LOAD_PATH << File.expand_path('spec', __dir__)
# Fix Zeus for Pry 0.13.0+
Pry::Pager.class_eval do

View file

@ -2,6 +2,6 @@
require 'yaml'
travis_config_path = File.expand_path('../../.travis.yml', __FILE__)
travis_config_path = File.expand_path('../.travis.yml', __dir__)
travis_config = YAML.load_file(travis_config_path)
puts travis_config.fetch('rvm').join(' ')

View file

@ -8,7 +8,7 @@ require 'rspec/core'
require 'spec_helper'
Dir[ File.join(File.expand_path('../support/acceptance/**/*.rb', __FILE__)) ].sort.each do |file|
Dir[ File.join(File.expand_path('support/acceptance/**/*.rb', __dir__)) ].sort.each do |file|
require file
end

View file

@ -1,4 +1,4 @@
PROJECT_ROOT = File.expand_path('../..', __FILE__)
PROJECT_ROOT = File.expand_path('..', __dir__)
$LOAD_PATH << File.join(PROJECT_ROOT, 'lib')
require 'pry'

View file

@ -8,7 +8,7 @@ require 'spec_helper'
$VERBOSE = true
Dir[ File.join(File.expand_path('../support/unit/**/*.rb', __FILE__)) ].sort.each do |file|
Dir[ File.join(File.expand_path('support/unit/**/*.rb', __dir__)) ].sort.each do |file|
require file
end