Sha256: 6594474041bcde1419aec975374f6b73f2be3f13fff234f092e401477367cdfb

Contents?: true

Size: 524 Bytes

Versions: 2

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

When /^the client successfully gets size of (text|binary) "(.*?)"$/ \
do |mode, remote_path|
  @size = client.get_size mode, remote_path
end

When /^the client gets size of (\S+) "(.*?)"$/ do |mode, path|
  capture_error do
    step %Q(the client successfully gets size of #{mode} "#{path}")
  end
end

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

Then(/^the reported size should be "(.*?)"$/) do |size|
  expect(@size).to eq size.to_i
end

Version data entries

2 entries across 2 versions & 1 rubygems

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