summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-02-16 12:24:35 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-02-16 12:24:35 -0800
commitc731f79af1dd6bf83a3facc0421dc6e4ccfc0e1c (patch)
treec10a09ba33bc4b52171f63395f32536c75f051a7
parent64c1d58a44ddfb8b41e1eb4c8e1a0816aeef9f51 (diff)
downloadbundler-c731f79af1dd6bf83a3facc0421dc6e4ccfc0e1c.tar.gz
Quiet out spec output
-rw-r--r--spec/spec_helper.rb1
-rw-r--r--spec/support/helpers.rb3
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b13cf63e03..58f35c7b2e 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -10,6 +10,7 @@ Dir["#{File.expand_path('../support', __FILE__)}/*.rb"].each do |file|
require file
end
+$debug = false
Spec::Rubygems.setup
FileUtils.rm_rf(Spec::Path.gem_repo1)
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 88b9fc63bb..ac259cec97 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -44,8 +44,9 @@ module Spec
gemfile = File.expand_path('../../../bin/bundle', __FILE__)
input, out, err, waitthread = Open3.popen3("#{Gem.ruby} -I#{lib} #{gemfile} #{cmd}#{args}")
@err = err.read.strip
- puts @err unless @err.empty?
+ puts @err if $debug && !err.empty?
@out = out.read.strip
+ @exitstatus = nil
@exitstatus = waitthread.value.to_i if waitthread
end