features/step_definitions/passive.rb in ftpd-1.1.1 vs features/step_definitions/passive.rb in ftpd-2.0.0

- old
+ new

@@ -1,3 +1,10 @@ +# frozen_string_literal: true + Given /^the client is in (passive|active) mode$/ do |mode| client.passive = mode == 'passive' +end + +Then(/^the server advertises passive IP (\S+)$/) do |ip| + quads = @reply.scan(/\d+/)[1..4].join(".") + expect(quads).to eq ip end