diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-07-13 01:52:47 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-07-13 01:54:42 -0300 |
commit | fc50f1fd50b05dc7e0f259dbe840e6d292e85aef (patch) | |
tree | 7375a1d7c71162f64d7b76191dec7d9b9a083c5f | |
parent | 0796d142118151a155cf0c19c115ddf9979ab75f (diff) | |
download | rails-fc50f1fd50b05dc7e0f259dbe840e6d292e85aef.tar.gz rails-fc50f1fd50b05dc7e0f259dbe840e6d292e85aef.tar.bz2 rails-fc50f1fd50b05dc7e0f259dbe840e6d292e85aef.zip |
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)
-rw-r--r-- | activesupport/test/load_paths_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/activesupport/test/load_paths_test.rb b/activesupport/test/load_paths_test.rb deleted file mode 100644 index ac617a9fd8..0000000000 --- a/activesupport/test/load_paths_test.rb +++ /dev/null @@ -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 |