Remove old test that check duplicated items in the load path
This test was added to protect the test suite from our mistakes but now it is failing because bundler does add duplicated libs in the load path by design (if the repository has more than one gem)
This commit is contained in:
parent
0796d14211
commit
fc50f1fd50
@ -1,16 +0,0 @@
|
||||
require 'abstract_unit'
|
||||
|
||||
class LoadPathsTest < ActiveSupport::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
|
||||
}
|
||||
load_paths_count[File.expand_path('../../lib', __FILE__)] -= 1
|
||||
|
||||
load_paths_count.select! { |k, v| v > 1 }
|
||||
assert load_paths_count.empty?, load_paths_count.inspect
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user