Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Fix for checksum unit tests to get TestDrive path using Get-PSDrive #439

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/unit/Get-ChecksumValid.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function setup-testfile {
$filePath = 'some\file.txt'
Setup -File "$filePath" 'yo yo'

Join-Path (Join-Path $env:Temp 'pester') "$filePath"
Join-Path ((Get-PSDrive -Name TestDrive).Root) "$filePath"
}

Context "When a good checksum is provided" {
Expand Down