@@ -2,7 +2,7 @@ ipmo "$PSScriptRoot/../GithubFS.psd1" -Force
22
33$testbotAccountName = ' repotestbot' ;
44$testbotRepo = ' scratch' ;
5- $workdir = " GH:\$testbotAccountName \$testbotRepo " ;
5+ $workdir = " GH:\\ $testbotAccountName \ \$testbotRepo " ;
66
77Describe " GithubFS" {
88 Context " Integrating with cmdlets" {
@@ -13,47 +13,47 @@ Describe "GithubFS" {
1313 }
1414
1515 It " Lets you read the examine the existance of a file" {
16- test-path " $workdir \README.md" | Should Be $true ;
16+ test-path " $workdir \\ README.md" | Should Be $true ;
1717 }
1818
1919 It " Lets you read the contents of a file" {
20- cat " $workdir \README.md" | Should Contain " # scratch" ;
20+ cat " $workdir \\ README.md" | Should Contain " # scratch" ;
2121 }
2222
2323 It " Enables redirection into the github fs to create or edit files" {
2424 $testString = " This is a content pipe test" ;
2525 echo $testString > " $workdir /test.txt" ;
26- cat " $workdir \test.txt" | Should Be $testString ;
27- rm " $workdir \test.txt"
26+ cat " $workdir \\ test.txt" | Should Be $testString ;
27+ rm " $workdir \\ test.txt"
2828 }
2929
3030 It " Enables the creation or deletion of files in github" {
31- new-item - Type File - Path " $workdir \newitem.txt" - Value " content" ;
32- cat " $workdir \newitem.txt" | Should Be " content" ;
33- rm " $workdir \newitem.txt" ;
34- test-path " $workdir \newitem.txt" | Should Be $false ;
31+ new-item - Type File - Path " $workdir \\ newitem.txt" - Value " content" ;
32+ cat " $workdir \\ newitem.txt" | Should Be " content" ;
33+ rm " $workdir \\ newitem.txt" ;
34+ test-path " $workdir \\ newitem.txt" | Should Be $false ;
3535 }
3636
3737 It " Enables the creation or deletion of repos in github" {
38- $repo = " GH:\$testbotAccountName \scratch2" ;
38+ $repo = " GH:\\ $testbotAccountName \ \scratch2" ;
3939 mkdir $repo ;
4040 test-path $repo | Should Be $true ;
4141 rm $repo ;
4242 test-path $repo | Should Be $false ;
4343 }
4444
4545 It " Can make files with mkdir and remove folders" {
46- $directory = " $workdir \testfolder" ;
46+ $directory = " $workdir \\ testfolder" ;
4747 mkdir $directory ;
48- test-path " $directory \.gitkeep" | Should Be $true ;
48+ test-path " $directory \\ .gitkeep" | Should Be $true ;
4949 rm $directory ;
5050 test-path $directory | Should Be $false ;
5151 }
5252 }
5353
5454 Context " Browsing github" {
5555 It " can browse repos from orgs you're not a member of" {
56- ls " GH:\Microsoft" | Should Not BeNullOrEmpty
56+ ls " GH:\\ Microsoft" | Should Not BeNullOrEmpty
5757 }
5858 }
5959}
0 commit comments