Sha256: 903cfe50a8dbe6f16fb1fef327dd79c6b08547623a5f371d88356da6cf67bd3b

Contents?: true

Size: 704 Bytes

Versions: 13

Compression:

Stored size: 704 Bytes

Contents

When /^the client cd's to "(.*?)"$/ do |path|
  capture_error do
    step %Q(the client successfully cd's to "#{path}")
  end
end

# As of Ruby 1.9.3-p125, Net::FTP#chdir('..') will send a CDUP.
# However, that could conceivably change: The use of CDUP not
# required by the FTP protocol.  Therefore we use this step to
# ensure that CDUP is sent and therefore tested.

When /^the client successfully cd's up$/ do
  client.raw 'CDUP'
end

When /^the client successfully cd's to "(.*?)"$/ do |path|
  client.chdir path
end

Then /^the current directory should be "(.*?)"$/ do |path|
  client.pwd.should == path
end

Then /^the XPWD directory should be "(.*?)"$/ do |path|
  client.xpwd.should == path
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ftpd-0.17.0 features/step_definitions/directory_navigation.rb
ftpd-0.16.0 features/step_definitions/directory_navigation.rb
ftpd-0.15.0 features/step_definitions/directory_navigation.rb
ftpd-0.14.0 features/step_definitions/directory_navigation.rb
ftpd-0.13.0 features/step_definitions/directory_navigation.rb
ftpd-0.12.0 features/step_definitions/directory_navigation.rb
ftpd-0.11.0 features/step_definitions/directory_navigation.rb
ftpd-0.10.0 features/step_definitions/directory_navigation.rb
ftpd-0.9.0 features/step_definitions/directory_navigation.rb
ftpd-0.7.1 features/step_definitions/directory_navigation.rb
ftpd-0.8.0 features/step_definitions/directory_navigation.rb
ftpd-0.7.0 features/step_definitions/directory_navigation.rb
ftpd-0.6.0 features/step_definitions/directory_navigation.rb