aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/rubygems_ext.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-07-28 12:27:56 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-02 15:04:28 -0500
commit3e25cb850e922e58ab551abeadb42f413c2ebb52 (patch)
treebb6dc018041c95bc5c2925786c74ff74e76cde96 /spec/support/rubygems_ext.rb
parent8b2be1b2a373aed884ee8f0b2f3dc0e792729340 (diff)
downloadbundler-3e25cb850e922e58ab551abeadb42f413c2ebb52.tar.gz
Move the gem_command helper to existing execution infrastructure
Diffstat (limited to 'spec/support/rubygems_ext.rb')
-rw-r--r--spec/support/rubygems_ext.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index e4365031..4ddbc331 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -50,14 +50,5 @@ module Spec
cmd += " --version '#{version}'" if version
system(cmd) || raise("Installing gem #{name} for the tests to use failed!")
end
-
- def gem_command(command, args = "", options = {})
- if command == :exec && !options[:no_quote]
- args = args.gsub(/(?=")/, "\\")
- args = %("#{args}")
- end
- lib = File.join(File.dirname(__FILE__), "..", "..", "lib")
- `#{Gem.ruby} -I#{lib} -rubygems -S gem --backtrace #{command} #{args}`.strip
- end
end
end