Sha256: 78170c8afb0f63c0c6c73fbc166d3f1c155da65c46debcdaef4f2d47febedf0a

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

When /^the client successfully requests features$/ do
  @feature_reply = client.raw "FEAT"
end

def feature_regexp(feature)
  /^ #{feature}$/
end

Then /^the response should include feature "(.*?)"$/ do |feature|
  expect(@feature_reply).to match feature_regexp(feature)
end

Then /^the response should not include feature "(.*?)"$/ do |feature|
  expect(@feature_reply).to_not match feature_regexp(feature)
end

Then /^the response should( not)? include TLS features$/ do |neg|
  step %Q'the response should#{neg} include feature "AUTH TLS"'
  step %Q'the response should#{neg} include feature "PBSZ"'
  step %Q'the response should#{neg} include feature "PROT"'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ftpd-2.0.1 features/step_definitions/features.rb
ftpd-2.0.0 features/step_definitions/features.rb