2019-07-26 00:36:33 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-09-16 16:44:29 +00:00
|
|
|
class DeployJobTest < ActiveSupport::TestCase
|
2019-07-26 00:36:33 +00:00
|
|
|
test 'se puede compilar' do
|
2021-08-07 21:25:54 +00:00
|
|
|
site = create :site
|
2019-07-26 00:36:33 +00:00
|
|
|
|
2019-09-16 16:44:29 +00:00
|
|
|
DeployJob.perform_async(site.id)
|
2019-07-26 00:36:33 +00:00
|
|
|
|
|
|
|
assert_not ActionMailer::Base.deliveries.empty?
|
|
|
|
|
|
|
|
site.deploys.each do |d|
|
2020-10-04 00:32:32 +00:00
|
|
|
assert File.exist?(d.respond_to?(:path) ? d.path : d.destination)
|
2019-07-26 00:36:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
site.destroy
|
|
|
|
end
|
|
|
|
end
|