summaryrefslogtreecommitdiff
path: root/spec/bundler/support/command_execution.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/support/command_execution.rb')
-rw-r--r--spec/bundler/support/command_execution.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/bundler/support/command_execution.rb b/spec/bundler/support/command_execution.rb
index 02726744d3..e2915b996d 100644
--- a/spec/bundler/support/command_execution.rb
+++ b/spec/bundler/support/command_execution.rb
@@ -2,9 +2,8 @@
module Spec
class CommandExecution
- def initialize(command, working_directory:, timeout:)
+ def initialize(command, timeout:)
@command = command
- @working_directory = working_directory
@timeout = timeout
@original_stdout = String.new
@original_stderr = String.new
@@ -73,7 +72,7 @@ module Spec
attr_reader :failure_reason
def normalize(string)
- string.force_encoding(Encoding::UTF_8).strip.gsub("\r\n", "\n")
+ string.dup.force_encoding(Encoding::UTF_8).scrub.strip.gsub("\r\n", "\n")
end
end
end