Sha256: 88d7641afd66f4cf788c721ae5002e1a658843820d073f6b0ae9b6b51692f8a7

Contents?: true

Size: 567 Bytes

Versions: 13

Compression:

Stored size: 567 Bytes

Contents

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
  commands.should include 'NOOP'
  commands.should include 'USER'
end

Then /^the server should return help for "(.*?)"$/ do |command|
  @help_reply.should =~ /Command #{command} is recognized/
end

Then /^the server should return no help for "(.*?)"$/ do |command|
  @help_reply.should =~ /Command #{command} is not recognized/
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ftpd-0.17.0 features/step_definitions/help.rb
ftpd-0.16.0 features/step_definitions/help.rb
ftpd-0.15.0 features/step_definitions/help.rb
ftpd-0.14.0 features/step_definitions/help.rb
ftpd-0.13.0 features/step_definitions/help.rb
ftpd-0.12.0 features/step_definitions/help.rb
ftpd-0.11.0 features/step_definitions/help.rb
ftpd-0.10.0 features/step_definitions/help.rb
ftpd-0.9.0 features/step_definitions/help.rb
ftpd-0.7.1 features/step_definitions/help.rb
ftpd-0.8.0 features/step_definitions/help.rb
ftpd-0.7.0 features/step_definitions/help.rb
ftpd-0.6.0 features/step_definitions/help.rb