summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-03 17:44:02 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-05 17:35:55 +0100
commit6b6385fc525057da90a5dbf5de5363ef97e81860 (patch)
treeff898a2a935f2c778e2f061c332a98a73ba91843
parent180385da7c19be49dce9ce595cb7201a6e23a413 (diff)
downloadbundler-6b6385fc525057da90a5dbf5de5363ef97e81860.tar.gz
Remove stuff making errors harder to figure out
-rw-r--r--spec/support/command_execution.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/spec/support/command_execution.rb b/spec/support/command_execution.rb
index b3c289979f..68e5c56c75 100644
--- a/spec/support/command_execution.rb
+++ b/spec/support/command_execution.rb
@@ -3,18 +3,7 @@
module Spec
CommandExecution = Struct.new(:command, :working_directory, :exitstatus, :stdout, :stderr) do
def to_s
- c = Shellwords.shellsplit(command.strip).map {|s| s.include?("\n") ? " \\\n <<EOS\n#{s.gsub(/^/, " ").chomp}\nEOS" : Shellwords.shellescape(s) }
- c = c.reduce("") do |acc, elem|
- concat = acc + " " + elem
-
- last_line = concat.match(/.*\z/)[0]
- if last_line.size >= 100
- acc + " \\\n " + elem
- else
- concat
- end
- end
- "$ #{c.strip}"
+ "$ #{command}"
end
alias_method :inspect, :to_s