Sha256: e65bbbd0d98ac9e213632daec722f7efb49d14e86def723284ea114f7e9bb786
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
def server @server ||= TestServer.new end Given /^the test server is started$/ do server.start end Given /^the test server has TLS mode "(\w+)"$/ do |mode| server.tls = mode.to_sym end Given /^the test server has debug (enabled|disabled)$/ do |state| server.debug = state == 'enabled' end Given /^the test server lacks (\w+)$/ do |feature| server.send "#{feature}=", false end Given /^the test server has auth level "(.*?)"$/ do |auth_level| auth_level = Ftpd.const_get(auth_level) server.auth_level = auth_level end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.4.0 | features/ftp_server/step_definitions/test_server.rb |