Sha256: 1c74a9f10f11cf2b4e21cf76a161f78276ad068ed4987bb4e7e8e1672fe9577c
Contents?: true
Size: 615 Bytes
Versions: 3
Compression:
Stored size: 615 Bytes
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 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ftpd-0.2.0 | features/step_definitions/server_files.rb |
ftpd-0.1.1 | features/step_definitions/server_files.rb |
ftpd-0.1.0 | features/step_definitions/server_files.rb |