Skip to content

Commit

Permalink
Do not add lib to load path when running separate tests
Browse files Browse the repository at this point in the history
This is a better check that the internals are correctly using
require_relative and not relying on autoload.
  • Loading branch information
jeremyevans committed Aug 21, 2022
1 parent 1f2bbca commit 293b8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
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
Expand Down

0 comments on commit 293b8e7

Please sign in to comment.