summaryrefslogtreecommitdiff
path: root/spec/support/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r--spec/support/helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 06f3142941..0f4e6f0402 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -158,7 +158,7 @@ module Spec
args = args.gsub(/(?=")/, "\\")
args = %("#{args}")
end
- sys_exec("#{Gem.ruby} -rubygems -S gem --backtrace #{command} #{args}", options[:expect_err])
+ sys_exec("#{Gem.ruby} -rubygems -S gem --backtrace #{command} #{args}")
end
bang :gem_command
@@ -172,7 +172,7 @@ module Spec
@err = Thread.new { stderr.read }.value.strip
end
- @all_output << [
+ (@all_output ||= String.new) << [
"$ #{cmd.to_s.strip}",
out,
err,