Skip to content

Commit

Permalink
Leave $LOAD_PATH.uniq! for jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
ysksn committed Jan 5, 2016
1 parent be71b0d commit a382d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
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
Expand Down
4 changes: 0 additions & 4 deletions spec/spec_helper/load_path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,4 @@
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

0 comments on commit a382d9b

Please sign in to comment.