diff --git a/tests/GzipCmdlets.tests.ps1 b/tests/GzipCmdlets.tests.ps1 index 2141a94..46a80d8 100644 --- a/tests/GzipCmdlets.tests.ps1 +++ b/tests/GzipCmdlets.tests.ps1 @@ -109,8 +109,8 @@ Describe 'Gzip Cmdlets' { } It 'Should throw if trying to compress a directory' { - { 0..5 | ForEach-Object { New-Item (Join-Path $TestDrive "folder $_") } | - Compress-GzipArchive -DestinationPath $destination } | + $folders = 0..5 | ForEach-Object { New-Item (Join-Path $TestDrive "folder $_") } + { Compress-GzipArchive $folders.FullName -Destination $destination } | Should -Throw } diff --git a/tests/ZipEntryCmdlets.tests.ps1 b/tests/ZipEntryCmdlets.tests.ps1 index ba57ccf..5d83526 100644 --- a/tests/ZipEntryCmdlets.tests.ps1 +++ b/tests/ZipEntryCmdlets.tests.ps1 @@ -20,7 +20,7 @@ Describe 'ZipEntry Cmdlets' { } It 'Should throw if -Destination is a Directory' { - { New-ZipEntry -Destination $pwd -EntryPath foo } | + { New-ZipEntry -Destination $pwd.Path -EntryPath foo } | Should -Throw }