Permalink
Browse files

adding action to the mock and the variables

  • Loading branch information...
ferventcoder committed Jun 5, 2012
1 parent 38a0ab2 commit ee883242c962dc886cd1282e4dbe4121d4fcc6cd
Showing with 4 additions and 1 deletion.
  1. +1 −0 tests/_Initialize-Variables.ps1
  2. +3 −1 tests/functions/Run-ChocolateyPS1.ps1
@@ -16,6 +16,7 @@
$script:chocoInstallLog = ''
$script:name = ''
$script:path = ''
$script:action = ''
# function calls
$script:chocolatey_install_was_called = $false
@@ -1,12 +1,14 @@
function Run-ChocolateyPS1 {
param(
[string] $packageFolder,
[string] $packageName
[string] $packageName,
[string] $action
)
$script:run_chocolateyps1_was_called = $true
$script:packageFolder = $packageFolder
$script:packageName = $packageName
$script:action = $action
if ($script:exec_run_chocolateyps1_actual) { Run-ChocolateyPS1-Actual @PSBoundParameters}
}

0 comments on commit ee88324

Please sign in to comment.