You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe "Rename-Item" {
It "Rename-Item should work with files which have special characters" {
$file=new-item-itemtype file "${TESTDRIVE}/file[txt].txt"test-path-literal $file.fullname| Should be $trueRename-Item-literal $file.fullname"${TESTDRIVE}/file.txt.txt"test-path-literal $file.fullname| Should be $falsetest-path-literal "${TESTDRIVE}/file.txt.txt"| should be $true
}
}
Expected behavior
this test should pass (and it does on Windows)
Actual behavior
Rename-Item can't seem to find the file
Describing Rename-Item
[-] Rename-Item should work with files which have special characters 1.41s
An object at the specified path /tmp/bc945451-748f-471e-8dab-f2d09a1b2221/file[txt].txt does not exist.
at line: 5 in /home/james/tmp/rename.item.tests.ps1
Tests completed in 1.41s
Passed: 0 Failed: 1 Skipped: 0 Pending: 0
Steps to reproduce
Expected behavior
this test should pass (and it does on Windows)
Actual behavior
Rename-Item can't seem to find the file
Environment data