5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 20:26:22 +00:00
panel/test/models/deploy_www_test.rb
2019-10-01 16:41:33 -03:00

19 lines
405 B
Ruby

# 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