mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 02:06:21 +00:00
17 lines
543 B
Ruby
17 lines
543 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DeployZipTest < ActiveSupport::TestCase
|
|
test 'se puede deployear' do
|
|
deploy_local = create :deploy_local
|
|
|
|
assert deploy_local.deploy
|
|
assert File.directory?(deploy_local.destination)
|
|
assert_equal 3, deploy_local.build_stats.count
|
|
|
|
assert deploy_local.build_stats.map(&:bytes).compact.inject(:+).positive?
|
|
assert deploy_local.build_stats.map(&:seconds).compact.inject(:+).positive?
|
|
|
|
assert deploy_local.destroy
|
|
assert_not File.directory?(deploy_local.destination)
|
|
end
|
|
end
|