Created
January 2, 2012 15:24
-
-
Save ferventcoder/1551089 to your computer and use it in GitHub Desktop.
Pester - Script variables should reset for every describe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe "When installing packages from a packages.config manifest" { | |
$script:chocolatey_nuget_was_called = $false | |
$script:chocolatey_rubygem_was_called = $false | |
$script:chocolatey_webpi_was_called = $false | |
$script:packageName = '' | |
$script:version = '' | |
# content here | |
} | |
Describe "When installing packages from a packages.config manifest that doesn't exist" { | |
$script:chocolatey_nuget_was_called = $false | |
$script:chocolatey_rubygem_was_called = $false | |
$script:chocolatey_webpi_was_called = $false | |
$script:packageName = '' | |
$script:version = '' | |
# content here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#all script variables automatically reset | |
#$script:chocolatey_nuget_was_called = $false | |
#$script:chocolatey_rubygem_was_called = $false | |
#$script:chocolatey_webpi_was_called = $false | |
#$script:packageName = '' | |
#$script:version = '' | |
Describe "When installing packages from a packages.config manifest" { | |
# content here | |
} | |
Describe "When installing packages from a packages.config manifest that doesn't exist" { | |
# content here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Initialize-Variables { | |
$script:chocolatey_nuget_was_called = $false | |
$script:chocolatey_rubygem_was_called = $false | |
$script:chocolatey_webpi_was_called = $false | |
$script:packageName = '' | |
$script:version = '' | |
} | |
Describe "When installing packages from a packages.config manifest" { | |
Initialize-Variables | |
# content here | |
} | |
Describe "When installing packages from a packages.config manifest that doesn't exist" { | |
Initialize-Variables | |
# content here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment