1
0
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:
Holger Just 2017-08-02 16:06:21 +02:00
parent b228494d14
commit f6c5930db6
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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|