Sha256: 65f5f485e8df4d82c8aae623f1293e5764e022664dfd313435814abbfdab12fe

Contents?: true

Size: 743 Bytes

Versions: 2

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal: true

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|
  expect(client.pwd).to eq path
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

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