Sha256: 363d9221f51715982787cf054e311f4b3187f66ad7a463aea9f8b01d5b51a580
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
Given /^the server has directory "(.*?)"$/ do |remote_path| @server.add_directory remote_path end Given /^the server has file "(.*?)"$/ do |remote_path| @server.add_file remote_path end Then /^the server should( not)? have file "(.*?)"$/ do |neg, path| matcher = if neg :be_false else :be_true end @server.has_file?(path).should send(matcher) end Then /^the server should( not)? have directory "(.*?)"$/ do |neg, path| matcher = if neg :be_false else :be_true end @server.has_directory?(path).should send(matcher) end Then /^the remote file "(.*?)" should have (unix|windows) line endings$/ do |remote_path, line_ending_type| line_ending_type(@server.file_contents(remote_path)).should == line_ending_type.to_sym end Then /^the server should have a file with the contents of "(.*?)"$/ do |path| @server.has_file_with_contents_of?(path).should be_true end Then /^the server should have (\d+) files? with "(.*?)" in the name$/ do |count, name| @server.files_named_like(name).size.should == count.to_i end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.3.2 | features/step_definitions/server_files.rb |
ftpd-0.3.1 | features/step_definitions/server_files.rb |
ftpd-0.2.2 | features/step_definitions/server_files.rb |