Permalink
Browse files

prepping tests and mocks

  • Loading branch information...
ferventcoder committed May 15, 2012
1 parent 6c532b8 commit cc4aca0dc48840c7113167bd08aeddcaf83f65c0
@@ -18,9 +18,9 @@
$script:path = ''
# function calls
$script:chocolatey_install_was_called= $false
$script:chocolatey_install_was_called = $false
$script:chocolatey_installall_was_called = $false
$script:chocolatey_installifmissing_was_called= $false
$script:chocolatey_installifmissing_was_called = $false
$script:chocolatey_list_was_called = $false
$script:chocolatey_nuget_was_called = $false
$script:chocolatey_pack_was_called = $false
@@ -136,4 +136,10 @@
$script:exec_start_chocolateyprocessasadmin_actual = $false
$script:exec_write_chocolateyfailure_actual = $false
$script:exec_write_chocolateysuccess_actual = $false
# actual function calls
$script:get_longpackageversion_actual_was_called = $false
$script:get_packagefoldersforpackage_actual_was_called = $false
$script:get_packagefolderversions_actual_was_called = $false
$script:get_versionsforcomparison_actual_was_called = $false
}
View
@@ -1,6 +1,6 @@
Setup -Folder 'chocolatey\chocolateyInstall'
Setup -Folder 'chocolatey\lib'
Setup -Folder 'chocolatey\bin'
Setup -File 'chocolatey\chocolateyInstall\_crapworkaround.txt'
Setup -File 'chocolatey\lib\_crapworkaround.txt'
Setup -File 'chocolatey\bin\_crapworkaround.txt'
Setup -File 'chocolatey\chocolateyInstall\chocolateyInstall.log'
Setup -File 'chocolatey\chocolateyInstall\chocolateyWebPiInstall.log'
Setup -File 'chocolatey\chocolateyInstall\error.log'
@@ -4,7 +4,12 @@ param(
)
$script:get_longpackageversion_was_called = $true
$script:packageName = $packageName
$script:packageVersion = $packageVersion
if ($script:exec_get_longpackageversion_actual) { Get-LongPackageVersion-Actual @PSBoundParameters}
if ($script:exec_get_longpackageversion_actual) {
$script:get_longpackageversion_actual_was_called = $true
Get-LongPackageVersion-Actual @PSBoundParameters
} else {
return $script:get_longpackageversion_return_value
}
}
@@ -6,5 +6,10 @@ param(
$script:get_packagefolderversions_was_called = $true
$script:packageName = $packageName
if ($script:exec_get_packagefolderversions_actual) { Get-PackageFolderVersions-Actual @PSBoundParameters}
if ($script:exec_get_packagefolderversions_actual) {
$script:get_packagefolderversions_actual_was_called = $true
Get-PackageFolderVersions-Actual @PSBoundParameters
} else {
return $script:get_packagefolderversions_return_value
}
}
@@ -6,5 +6,10 @@ param(
$script:get_packagefoldersforpackage_was_called = $true
$script:packageName = $packageName
if ($script:exec_get_packagefoldersforpackage_actual) { Get-PackageFoldersForPackage-Actual @PSBoundParameters}
if ($script:exec_get_packagefoldersforpackage_actual) {
$script:get_packagefoldersforpackage_actual_was_called = $true
Get-PackageFoldersForPackage-Actual @PSBoundParameters
} else {
return $script:get_packagefoldersforpackage_return_value
}
}
@@ -6,5 +6,10 @@ param (
$script:get_versionsforcomparison_was_called = $true
$script:packageVersions = $packageVersions
if ($script:exec_get_versionsforcomparison_actual) { Get-VersionsForComparison-Actual @PSBoundParameters}
if ($script:exec_get_versionsforcomparison_actual) {
$script:get_versionsforcomparison_actual_was_called = $true
Get-VersionsForComparison-Actual @PSBoundParameters
} else {
return $script:get_versionsforcomparison_return_value
}
}

0 comments on commit cc4aca0

Please sign in to comment.