Sha256: b99ad5b4f050e0dc3c9eaf5c79d819775e29b43eac8db471c5f5662ebb63bb18

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

require 'date'

When /^the client successfully gets mtime of "(.*?)"$/ \
do |remote_path|
  @mtime = client.get_mtime remote_path
end

When /^the client gets mtime of "(.*?)"$/ do |path|
  capture_error do
    step %Q(the client successfully gets mtime of "#{path}")
  end
end

When /^the client gets mtime with no path$/ do
  capture_error do
    client.raw 'MDTM'
  end
end

Then(/^the reported mtime should be "(.*?)"$/) do |mtime|
  expected_time = DateTime.parse(mtime).to_time.utc
  expect(@mtime).to eq expected_time
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ftpd-1.1.1 features/step_definitions/mtime.rb
ftpd-1.1.0 features/step_definitions/mtime.rb
investtools-ftpd-1.0.1 features/step_definitions/mtime.rb
ftpd-1.0.1 features/step_definitions/mtime.rb
ftpd-1.0.0 features/step_definitions/mtime.rb