Sha256: 35a3d4211f9de9e12636d8e94c8f25cf92afe57949ef222ff803f2e2b95e9140

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

# encoding: utf-8

require 'helper'

class Nanoc::LFTP::FilterTest < Minitest::Test

  def test_deploy
    rsync = Nanoc::LFTP::Deployer.new(
      'output',
      dst_host: 'ftp://example.com:123',
      dst_path: '/foo/path with spaces/subdir')

    def rsync.run_shell_cmd(args)
      @shell_cms_args = args
    end

    rsync.run
    assert_equal(
      [ 'lftp', '-e', 'mirror --reverse output/ /foo/path\ with\ spaces/subdir ; quit', 'ftp://example.com:123' ],
      rsync.instance_eval { @shell_cms_args }
    )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-lftp-1.0.1 test/deployers/test_lftp.rb
nanoc-lftp-1.0.0 test/deployers/test_lftp.rb