diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 99a3b1b29..c8bd04378 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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')) FIXTURES_DIR = File.expand_path(File.join(SPEC_DIR, 'fixtures')) -$LOAD_PATH.uniq! - - if defined?(JRUBY_VERSION) puts 'Skipping coverage on JRuby' else diff --git a/spec/spec_helper/load_path_spec.rb b/spec/spec_helper/load_path_spec.rb index 4d0139bb5..31fc1fed9 100644 --- a/spec/spec_helper/load_path_spec.rb +++ b/spec/spec_helper/load_path_spec.rb @@ -27,4 +27,7 @@ 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 path') do + expect($LOAD_PATH).to match_array($LOAD_PATH.uniq!) + end end