5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 07:16:21 +00:00
panel/test/jobs/deploy_job_test.rb

22 lines
435 B
Ruby
Raw Permalink Normal View History

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
rol = create :rol
site = rol.site
site.deploys << create(:deploy_zip, site: site)
site.save
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|
assert File.exist?(d.try(:path) || d.try(:destination))
end
site.destroy
end
end