Skip to content

Commit c64c989

Browse files
committed
Adapt to path change of validator dlls from ScoopInstaller/Scoop#2024
1 parent 2a81ba3 commit c64c989

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/Scoop-Bucket.Tests.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
. "$env:SCOOP_HOME\lib\unix.ps1"
44
. "$env:SCOOP_HOME\test\Scoop-TestLib.ps1"
55

6-
$repo_dir = (Get-Item $MyInvocation.MyCommand.Path).directory.parent.FullName
6+
$repo_dir = (Get-Item $MyInvocation.MyCommand.Path).directory.FullName
77

88
$repo_files = @(Get-ChildItem $repo_dir -file -recurse)
99

@@ -154,9 +154,9 @@ describe "manifest-validation" {
154154
beforeall {
155155
$working_dir = setup_working "manifest"
156156
$schema = "$env:SCOOP_HOME/schema.json"
157-
Add-Type -Path "$env:SCOOP_HOME\supporting\validator\Newtonsoft.Json.dll"
158-
Add-Type -Path "$env:SCOOP_HOME\supporting\validator\Newtonsoft.Json.Schema.dll"
159-
Add-Type -Path "$env:SCOOP_HOME\supporting\validator\Scoop.Validator.dll"
157+
Add-Type -Path "$env:SCOOP_HOME\supporting\validator\bin\Newtonsoft.Json.dll"
158+
Add-Type -Path "$env:SCOOP_HOME\supporting\validator\bin\Newtonsoft.Json.Schema.dll"
159+
Add-Type -Path "$env:SCOOP_HOME\supporting\validator\bin\Scoop.Validator.dll"
160160
}
161161

162162
it "Scoop.Validator is available" {
@@ -165,7 +165,7 @@ describe "manifest-validation" {
165165

166166
context "manifest validates against the schema" {
167167
beforeall {
168-
$bucketdir = "$psscriptroot/../"
168+
$bucketdir = "$psscriptroot"
169169
$manifest_files = gci $bucketdir *.json
170170
$validator = new-object Scoop.Validator($schema, $true)
171171
}

0 commit comments

Comments
 (0)