diff options
author | Jeremy Evans <code@jeremyevans.net> | 2022-08-20 19:12:05 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2022-08-20 22:47:57 -0700 |
commit | 293b8e7c3e8bf4f0ffc56d135631e77f9f03ad61 (patch) | |
tree | 8a00ecddad6f24f41d85ec7e0ccb5873d67c62a5 | |
parent | 1f2bbcaaf6497012ab5601834aaa4a215d13ea41 (diff) | |
download | rack-293b8e7c3e8bf4f0ffc56d135631e77f9f03ad61.tar.gz |
Do not add lib to load path when running separate tests
This is a better check that the internals are correctly using require_relative and not relying on autoload.
-rw-r--r-- | test/helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/helper.rb b/test/helper.rb index 5c310b54..a2f569c3 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -12,12 +12,12 @@ if ENV.delete('COVERAGE') end end -$:.unshift(File.expand_path('../lib', __dir__)) if ENV['SEPARATE'] def self.separate_testing yield end else + $:.unshift(File.expand_path('../lib', __dir__)) require_relative '../lib/rack' def self.separate_testing |