Remove $LOAD_PATH.uniq! because $LOAD_PATH does not contain any duplicate path
This commit is contained in:
parent
b02f03a556
commit
f6dc748cbd
|
@ -19,9 +19,6 @@ GENERATED_DIR = File.expand_path(File.join(ROOT_DIR, 'generated'))
|
||||||
THIRD_PARTY_DIR = File.expand_path(File.join(ROOT_DIR, 'third_party'))
|
THIRD_PARTY_DIR = File.expand_path(File.join(ROOT_DIR, 'third_party'))
|
||||||
FIXTURES_DIR = File.expand_path(File.join(SPEC_DIR, 'fixtures'))
|
FIXTURES_DIR = File.expand_path(File.join(SPEC_DIR, 'fixtures'))
|
||||||
|
|
||||||
$LOAD_PATH.uniq!
|
|
||||||
|
|
||||||
|
|
||||||
if defined?(JRUBY_VERSION)
|
if defined?(JRUBY_VERSION)
|
||||||
puts 'Skipping coverage on JRuby'
|
puts 'Skipping coverage on JRuby'
|
||||||
else
|
else
|
||||||
|
|
|
@ -27,4 +27,7 @@ RSpec.describe $LOAD_PATH do
|
||||||
it('should contain THIRD_PARTY_DIR') do
|
it('should contain THIRD_PARTY_DIR') do
|
||||||
expect($LOAD_PATH).to include(THIRD_PARTY_DIR)
|
expect($LOAD_PATH).to include(THIRD_PARTY_DIR)
|
||||||
end
|
end
|
||||||
|
it('should already have unique path') do
|
||||||
|
expect($LOAD_PATH).to match_array($LOAD_PATH.uniq!)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue