mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
15 lines
424 B
Ruby
15 lines
424 B
Ruby
require 'abstract_unit'
|
|
|
|
class LoadPathsTest < Test::Unit::TestCase
|
|
def test_uniq_load_paths
|
|
load_paths_count = $LOAD_PATH.inject({}) { |paths, path|
|
|
expanded_path = File.expand_path(path)
|
|
paths[expanded_path] ||= 0
|
|
paths[expanded_path] += 1
|
|
paths
|
|
}
|
|
|
|
# CI has a bunch of duplicate load paths
|
|
# assert_equal [], load_paths_count.select { |k, v| v > 1 }, $LOAD_PATH.inspect
|
|
end
|
|
end
|