summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-03-29 05:04:43 +0000
committerBundlerbot <bot@bundler.io>2019-03-29 05:04:43 +0000
commit7fe4b321476bfdd67fcf2b32e0571d3709b7cd9f (patch)
treed66a852efcb8eb4b253c7c17ba6541a766fa1992 /Rakefile
parent91912a1da92a5c1d0c6c29b03f35ed4fc024021f (diff)
parent776ad6238a35710abcf242786bdb40236a9a27f7 (diff)
downloadbundler-7fe4b321476bfdd67fcf2b32e0571d3709b7cd9f.tar.gz
Merge #7074
7074: Remove unnecessary test stuff r=colby-swandale a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that our test setup could be simpler. ### What was your diagnosis of the problem? My diagnosis was that some lines installing test gem dependencies could be removed from the Rakefile, because the tests already detect this situation and auto-install test gems appropriately. ### What is your fix for the problem, implemented in this PR? My fix is to remove the lines. However, removing the lines led to a single test failure that can be explained becase `FileUtils` ends up being required too late, thus skipping one call to `Gem.clear_paths` done in the tests setup so that stuff memoized by `rubygems` is cleared and tests can assume is not loaded yet. The situation is very intricate but I tried to explain it in the commit message. ### Why did you choose this fix out of the possible options? I chose this fix because it fixes the test failure, but I also plan to propose to eliminate the `autoload` calls in rubygems that also contributed to this issue. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 0 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index 8f4fb52091..53830aebc0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -54,11 +54,6 @@ namespace :spec do
"'#{name}:#{version}'"
end.join(" ")
sh %(#{Gem.ruby} -S gem #{gem_install_command})
-
- # Download and install gems used inside tests
- $LOAD_PATH.unshift("./spec")
- require "support/rubygems_ext"
- Spec::Rubygems.setup
end
namespace :travis do