summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-20 18:58:44 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-21 22:21:17 +0200
commit4b9a7dd018bc4235aa224298ffb4fd3667158430 (patch)
treea70d7df48586b4a0f383d92332e4bfc6f6c24a81
parentddb6b31e6c320c46831c868376af41c1e09ecbbc (diff)
downloadbundler-4b9a7dd018bc4235aa224298ffb4fd3667158430.tar.gz
Remove unnecessary test stuff
-rw-r--r--spec/support/builders.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb
index 70125ce52a..15594dbdd5 100644
--- a/spec/support/builders.rb
+++ b/spec/support/builders.rb
@@ -355,20 +355,6 @@ module Spec
def build_repo(path, &blk)
return if File.directory?(path)
- rake_path = Dir["#{Path.base_system_gems}/**/rake*.gem"].first
-
- if rake_path.nil?
- Spec::Path.base_system_gems.rmtree
- Spec::Rubygems.setup
- rake_path = Dir["#{Path.base_system_gems}/**/rake*.gem"].first
- end
-
- if rake_path
- FileUtils.mkdir_p("#{path}/gems")
- FileUtils.cp rake_path, "#{path}/gems/"
- else
- abort "Your test gems are missing! Run `rm -rf #{tmp}` and try again."
- end
update_repo(path, &blk)
end