Fix tests broken by removal of aliases

This commit is contained in:
Andrew Schwartzmeyer committed 2016-04-08 13:36:54 -07:00
1 parent 47a8ee5bcf
commit 2bd274f5d7
8 files changed
+17 -83

No files matched your search

+2 -16
View File
@@ -6,15 +6,8 @@ Describe "Tee-Object" {
It "Should return the output to the screen and to the variable" {
$teefile = $testfile
echo teeobjecttest1 | Tee-Object -variable teeresults
$teeresults | Should Be "teeobjecttest1"
Remove-Item $teefile -ErrorAction SilentlyContinue
}
It "Should return the output to the screen and to the variable from the alias" {
$teefile = $testfile
echo teeobjecttest2 | tee -variable teeresults
$teeresults | Should Be "teeobjecttest2"
echo teeobjecttest1 | Tee-Object -variable teeresults
$teeresults | Should Be "teeobjecttest1"
Remove-Item $teefile -ErrorAction SilentlyContinue
}
@@ -24,12 +17,5 @@ Describe "Tee-Object" {
Get-Content $teefile | Should Be "teeobjecttest3"
Remove-Item $teefile -ErrorAction SilentlyContinue
}
It "Should tee the output to a file using the alias" {
$teefile = $testfile
echo teeobjecttest4 | tee $teefile
Get-Content $teefile | Should Be "teeobjecttest4"
Remove-item $teefile -ErrorAction SilentlyContinue
}
}
}