mirror of
https://github.com/meineerde/rackstash.git
synced 2026-01-31 17:27:13 +00:00
Use __dir__ instead of deriving from __FILE__ where suitable
This commit is contained in:
parent
b228494d14
commit
f6c5930db6
@ -5,7 +5,7 @@
|
||||
# This software may be modified and distributed under the terms
|
||||
# of the MIT license. See the LICENSE.txt file for details.
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
lib = File.expand_path('lib', __dir__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'rackstash/version'
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ if ENV['COVERAGE']
|
||||
end
|
||||
end
|
||||
|
||||
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
||||
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
||||
require 'rackstash'
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user