Sha256: a82543433e6f9ace0cae2217617d27799f3b37d4aa2f40a0ea17dadf07ff578a
Contents?: true
Size: 568 Bytes
Versions: 5
Compression:
Stored size: 568 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
5 entries across 5 versions & 1 rubygems