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