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.10.1 test/rsync_with_versions.rb
fulmar-1.10.0 test/rsync_with_versions.rb
fulmar-1.9.2 test/rsync_with_versions.rb
fulmar-1.9.1 test/rsync_with_versions.rb
fulmar-1.9.0 test/rsync_with_versions.rb
fulmar-1.8.15 test/rsync_with_versions.rb
fulmar-1.8.14 test/rsync_with_versions.rb
fulmar-1.8.13 test/rsync_with_versions.rb
fulmar-1.8.12 test/rsync_with_versions.rb
fulmar-1.8.11 test/rsync_with_versions.rb
fulmar-1.8.10 test/rsync_with_versions.rb
fulmar-1.8.9 test/rsync_with_versions.rb
fulmar-1.8.8 test/rsync_with_versions.rb
fulmar-1.8.7 test/rsync_with_versions.rb
fulmar-1.8.6 test/rsync_with_versions.rb
fulmar-1.8.5 test/rsync_with_versions.rb
fulmar-1.8.4 test/rsync_with_versions.rb
fulmar-1.8.3 test/rsync_with_versions.rb
fulmar-1.8.2 test/rsync_with_versions.rb
fulmar-1.8.1 test/rsync_with_versions.rb