Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
retrofitted all tests with pester mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
mwrock committed Oct 30, 2012
1 parent 05fb3c7 commit 654703b
Show file tree
Hide file tree
Showing 20 changed files with 177 additions and 481 deletions.
13 changes: 0 additions & 13 deletions tests/_FunctionRenameActuals.ps1
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
#credit to Aaron Lerch on helping me figure out how you can keep the real functions around

rename-item function:Update-SessionEnvironment Update-SessionEnvironment-Actual
rename-item function:Chocolatey-Help Chocolatey-Help-Actual
rename-item function:Chocolatey-Install Chocolatey-Install-Actual
rename-item function:Chocolatey-InstallIfMissing Chocolatey-InstallIfMissing-Actual
rename-item function:Chocolatey-List Chocolatey-List-Actual
rename-item function:Chocolatey-Pack Chocolatey-Pack-Actual
rename-item function:Chocolatey-PackagesConfig Chocolatey-PackagesConfig-Actual
rename-item function:Chocolatey-Push Chocolatey-Push-Actual
rename-item function:Chocolatey-RubyGem Chocolatey-RubyGem-Actual
rename-item function:Chocolatey-Update Chocolatey-Update-Actual
rename-item function:Chocolatey-Version Chocolatey-Version-Actual
rename-item function:Chocolatey-WebPI Chocolatey-WebPI-Actual
rename-item function:Chocolatey-WindowsFeatures Chocolatey-WindowsFeatures-Actual
rename-item function:Chocolatey-Cygwin Chocolatey-Cygwin-Actual
rename-item function:Delete-ExistingErrorLog Delete-ExistingErrorLog-Actual
rename-item function:Generate-BinFile Generate-BinFile-Actual
rename-item function:Get-ChocolateyBins Get-ChocolateyBins-Actual
rename-item function:Get-ConfigValue Get-ConfigValue-Actual
rename-item function:Get-LatestPackageVersion Get-LatestPackageVersion-Actual
rename-item function:Get-LongPackageVersion Get-LongPackageVersion-Actual
rename-item function:Get-PackageFolderVersions Get-PackageFolderVersions-Actual
rename-item function:Get-PackageFoldersForPackage Get-PackageFoldersForPackage-Actual
rename-item function:Get-VersionsForComparison Get-VersionsForComparison-Actual
rename-item function:Remove-LastInstallLog Remove-LastInstallLog-Actual
rename-item function:Run-ChocolateyProcess Run-ChocolateyProcess-Actual

Expand Down
20 changes: 0 additions & 20 deletions tests/functions/Chocolatey-Install.ps1

This file was deleted.

14 changes: 0 additions & 14 deletions tests/functions/Chocolatey-InstallIfMissing.ps1

This file was deleted.

10 changes: 0 additions & 10 deletions tests/functions/Chocolatey-PackagesConfig.ps1

This file was deleted.

16 changes: 0 additions & 16 deletions tests/functions/Chocolatey-Version.ps1

This file was deleted.

17 changes: 0 additions & 17 deletions tests/functions/Get-ConfigValue.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions tests/functions/Get-LongPackageVersion.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions tests/functions/Get-PackageFolderVersions.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions tests/functions/Get-PackageFoldersForPackage.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions tests/functions/Get-VersionsForComparison.ps1

This file was deleted.

6 changes: 0 additions & 6 deletions tests/helpers/Update-SessionEnvironment.ps1

This file was deleted.

Loading

0 comments on commit 654703b

Please sign in to comment.