features/support/example_server.rb in ftpd-1.1.1 vs features/support/example_server.rb in ftpd-2.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'fileutils'
require 'forwardable'
require File.expand_path('test_server_files',
File.dirname(__FILE__))
@@ -48,10 +50,10 @@
end
private
def read_output
- output = ''
+ output = ''.dup
loop do
line = @io.gets
break if line.nil?
output << line
break if line =~ /FTP server started/