17 lines
756 B
PowerShell
17 lines
756 B
PowerShell
$projectRoot = Split-Path -Parent $PSScriptRoot
|
|
$deployBatchPath = Join-Path $projectRoot 'scripts\Deploy-Perspektivwerk.bat'
|
|
$htaccessPath = Join-Path $projectRoot 'public\.htaccess'
|
|
|
|
Describe 'Perspektivwerk deployment' {
|
|
It 'deploys the complete Perspektivwerk document root and its sibling configuration file' {
|
|
$script = Get-Content -LiteralPath $deployBatchPath -Raw
|
|
$htaccess = Get-Content -LiteralPath $htaccessPath -Raw
|
|
|
|
$script | Should Match 'public\\booking-config\.php'
|
|
$script | Should Match 'public\\perspektivwerk"'
|
|
$script | Should Match 'boogie:html/perspektivwerk/'
|
|
$htaccess | Should Match '<Files "booking-config\.php">'
|
|
$htaccess | Should Match 'Require all denied'
|
|
}
|
|
}
|