Skip to content

Commit 084622b

Browse files
committed
Resolve expandContext in test suite relative to the manifest location.
1 parent ada5b45 commit 084622b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/suite_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def options
132132
{'specVersion' => "json-ld-1.1"}.merge(property('option') || {}).each do |k, v|
133133
opts[k.to_sym] = v
134134
end
135+
if opts[:expandContext] && !RDF::URI(opts[:expandContext]).absolute?
136+
# Resolve relative to manifest location
137+
opts[:expandContext] = manifest_url.join(opts[:expandContext]).to_s
138+
end
135139
opts
136140
end
137141
end

0 commit comments

Comments
 (0)