Sha256: 60abbe84a396e0e46fd910a82b47e54efbdff4b675d4cdf633232149ada8dd8a
Contents?: true
Size: 589 Bytes
Versions: 5
Compression:
Stored size: 589 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 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
5 entries across 5 versions & 2 rubygems