Skip to content

@ferventcoder /1.WhatIHaveToDo.ps1
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pester - Script variables should reset for every describe
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
}
#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
}
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
Something went wrong with that request. Please try again.