Skip to content

Commit 29e4472

Browse files
committed
Add @vocab: @base example from spec.
1 parent f8bf0bd commit 29e4472

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spec/expand_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,22 @@
254254
"http://example.org/a": [{"@value": "foo"}]
255255
}])
256256
},
257+
"example": {
258+
input: %({
259+
"@context": {
260+
"@base": "http://example/document",
261+
"@vocab": "@base"
262+
},
263+
"@id": "http://example.org/places#BrewEats",
264+
"@type": "#Restaurant",
265+
"#name": "Brew Eats"
266+
}),
267+
output: %([{
268+
"@id": "http://example.org/places#BrewEats",
269+
"@type": ["http://example/document#Restaurant"],
270+
"http://example/document#name": [{"@value": "Brew Eats"}]
271+
}])
272+
}
257273
}.each do |title, params|
258274
it(title) {run_expand params.merge(base: "http://example.org/")}
259275
end

0 commit comments

Comments
 (0)