5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 22:16:22 +00:00
panel/test/models/deploy_www_test.rb

20 lines
405 B
Ruby
Raw Normal View History

2019-10-01 19:41:33 +00:00
# frozen_string_literal: true
require 'test_helper'
class DeployWwwTest < ActiveSupport::TestCase
test 'se puede deployear' do
site = create :site
local = create :deploy_local, site: site
deploy = create :deploy_www, site: site
# Primero tenemos que generar el sitio
local.deploy
assert deploy.deploy
assert File.symlink?(deploy.destination)
local.destroy
end
end