From 489532736c1b019d4291c655bfbaa85c027af0fd Mon Sep 17 00:00:00 2001 From: Zachary Folwick Date: Thu, 16 Jul 2015 15:31:52 -0700 Subject: [PATCH] fixed Get-Item tests --- src/pester-tests/Test-Get-Item.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pester-tests/Test-Get-Item.Tests.ps1 b/src/pester-tests/Test-Get-Item.Tests.ps1 index 1e208e10bc..93d15a8e5b 100644 --- a/src/pester-tests/Test-Get-Item.Tests.ps1 +++ b/src/pester-tests/Test-Get-Item.Tests.ps1 @@ -10,7 +10,7 @@ Describe "Test-Get-Item" { It "Should return the name of the current working directory when a dot is used" { (Get-Item .).GetType().BaseType | Should Be 'System.IO.FileSystemInfo' - (Get-Item .).Name | Should Be 'Tests' + (Get-Item .).Name | Should Be 'pester-tests' } It "Should return the proper Name and BaseType for directory objects vs file system objects" { @@ -19,7 +19,7 @@ Describe "Test-Get-Item" { } It "Should return a different directory when a path argument is used" { - (Get-Item $HOME) | Should Not BeNullOrEmpty + (Get-Item /usr/bin) | Should Not BeNullOrEmpty (Get-Item ..) | Should Not BeNullOrEmpty } }