Sha256: 3f6ddb3bf3b0502ba872ae2a0aedb9ed6e10ba565f5e5a73249d440ba2964a70

Contents?: true

Size: 719 Bytes

Versions: 5

Compression:

Stored size: 719 Bytes

Contents

When /^the client successfully puts (text|binary) "(.*?)"$/ do
|mode, local_path|
  @client.put mode, local_path
end

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

When /^the client puts with no path$/ do
  capture_error do
    @client.raw 'STOR'
  end
end

When /^the client successfully stores unique "(.*?)"(?: to "(.*?)")?$/ do
|local_path, remote_path|
  @client.store_unique local_path, remote_path
end

When /^the client stores unique "(.*?)"( to ".*?")?$/ do
|local_path, remote_path|
  capture_error do
    step(%Q'the client successfully stores unique ' +
         %Q'"#{local_path}"#{remote_path}')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ftpd-0.5.0 features/step_definitions/put.rb
ftpd-0.4.0 features/step_definitions/put.rb
ftpd-0.3.2 features/step_definitions/put.rb
ftpd-0.3.1 features/step_definitions/put.rb
ftpd-0.2.2 features/step_definitions/put.rb