Leave $LOAD_PATH.uniq! for jruby
This commit is contained in:
1 parent
be71b0dbf2
commit
a382d9be84
2 files changed
+2
-4
No files matched your search
@@ -19,6 +19,8 @@ GENERATED_DIR = File.expand_path(File.join(ROOT_DIR, 'generated'))
|
||||
THIRD_PARTY_DIR = File.expand_path(File.join(ROOT_DIR, 'third_party'))
|
||||
FIXTURES_DIR = File.expand_path(File.join(SPEC_DIR, 'fixtures'))
|
||||
|
||||
$LOAD_PATH.uniq!
|
||||
|
||||
if defined?(JRUBY_VERSION)
|
||||
puts 'Skipping coverage on JRuby'
|
||||
else
|
||||
|
||||
@@ -30,8 +30,4 @@ RSpec.describe $LOAD_PATH do
|
||||
it('should contain THIRD_PARTY_DIR') do
|
||||
expect($LOAD_PATH).to include(THIRD_PARTY_DIR)
|
||||
end
|
||||
|
||||
it('should already have unique paths') do
|
||||
expect($LOAD_PATH).to match_array($LOAD_PATH.uniq!)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user