features/step_definitions/system.rb in ftpd-1.1.1 vs features/step_definitions/system.rb in ftpd-2.0.0
- old
+ new
@@ -1,6 +1,11 @@
+# frozen_string_literal: true
+
When /^the client successfully queries system ID$/ do
@reply = client.system
+ # Prior to ruby-2.3.0, the #system call returned a string ending in
+ # a new-line.
+ @reply += "\n" unless @reply =~ /\n$/
end
Then /^the server returns a system ID reply$/ do
step 'the server returns a "UNIX Type: L8" reply'
end