Sha256: 2a1dc444fecb9e11ae7978c9f2110f4053ca8c6ff357be8ca02b7597fe303a75

Contents?: true

Size: 552 Bytes

Versions: 46

Compression:

Stored size: 552 Bytes

Contents

require 'minitest/autorun'
require 'fulmar/infrastructure/service/transfer/rsync_with_versions'

# Tests RsyncWithVersions
class RsyncWithVersionsTest < MiniTest::Unit::TestCase
  def setup
    @transfer = Fulmar::Infrastructure::Service::Transfer::RsyncWithVersions.new(
      host: 'example.com',
      remote_dir: '/tmp',
      rsync: {
        exclude: 'foo'
      },
      type: :rsync_with_versions
    )
  end

  def test_release_dir_contains_current_date
    assert_match(/\/#{Time.now.strftime('%Y-%m-%d')}_/, @transfer.release_dir)
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
fulmar-1.2.0 test/rsync_with_versions.rb
fulmar-1.1.0 test/rsync_with_versions.rb
fulmar-1.0.0 test/rsync_with_versions.rb
fulmar-0.6.5 test/rsync_with_versions.rb
fulmar-0.6.4 test/rsync_with_versions.rb
fulmar-0.6.3 test/rsync_with_versions.rb