From 05989fe455fcefaf0f6eb1c5405eb971c9627eff Mon Sep 17 00:00:00 2001 From: Zachary Folwick Date: Mon, 28 Dec 2015 10:15:19 -0800 Subject: [PATCH] moved alias test to its own test case --- src/pester-tests/Get-ChildItem.Tests.ps1 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/pester-tests/Get-ChildItem.Tests.ps1 b/src/pester-tests/Get-ChildItem.Tests.ps1 index 757a57fcda..cf92b11be3 100644 --- a/src/pester-tests/Get-ChildItem.Tests.ps1 +++ b/src/pester-tests/Get-ChildItem.Tests.ps1 @@ -1,18 +1,15 @@ Describe "Get-ChildItem" { It "Should list the contents of the current folder" { (Get-ChildItem .).Name.Length | Should BeGreaterThan 0 - - (ls .).Name.Length | Should BeGreaterThan 0 } It "Should list the contents of the home directory" { pushd $HOME (Get-ChildItem .).Name.Length | Should BeGreaterThan 0 popd + } - pushd $HOME - (ls .).Name.Length | Should BeGreaterThan 0 - popd - + It "Should be able to use the ls alias" { + $(ls .).Name.Length | Should Be $(Get-ChildItem .).Name.Length } }