Sha256: a8e9f6e4ca4e360d8c9fb8bdfa764ebae57970e8201028fd6c6496341417dba5
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
# frozen_string_literal: true When /^the client successfully asks for help(?: for "(.*?)")?$/ do |command| @help_reply = client.help(command) end Then /^the server should return a list of commands$/ do commands = @help_reply.scan(/\b([A-Z][A-Z]+)\b/).flatten expect(commands).to include 'NOOP' expect(commands).to include 'USER' end Then /^the server should return help for "(.*?)"$/ do |command| expect(@help_reply).to match /Command #{command} is recognized/ end Then /^the server should return no help for "(.*?)"$/ do |command| expect(@help_reply).to match /Command #{command} is not recognized/ end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ftpd-2.0.1 | features/step_definitions/help.rb |
ftpd-2.0.0 | features/step_definitions/help.rb |