@@ -65,7 +65,7 @@ def containers
6565 end
6666
6767 it "notes non-existing @context" do
68- expect { subject . parse ( StringIO . new ( "{}" ) ) } . to raise_error
68+ expect { subject . parse ( StringIO . new ( "{}" ) ) } . to raise_error ( JSON :: LD :: JsonLdError :: InvalidRemoteContext )
6969 end
7070
7171 it "parses a referenced context at a relative URI" do
@@ -262,7 +262,7 @@ def containers
262262 "@type as object" => { "foo" => { "@type" => { } } } ,
263263 "@type as array" => { "foo" => { "@type" => [ ] } } ,
264264 "@type as @list" => { "foo" => { "@type" => "@list" } } ,
265- "@type as @list " => { "foo" => { "@type" => "@set" } } ,
265+ "@type as @set " => { "foo" => { "@type" => "@set" } } ,
266266 "@container as object" => { "foo" => { "@container" => { } } } ,
267267 "@container as array" => { "foo" => { "@container" => [ ] } } ,
268268 "@container as string" => { "foo" => { "@container" => "true" } } ,
@@ -881,7 +881,6 @@ def containers
881881 "unmapped" => [ "foo" , "foo" ] ,
882882 "bnode" => [ "_:a" , RDF ::Node ( "a" ) ] ,
883883 "relative" => [ "foo/bar" , "http://base/foo/bar" ] ,
884- "odd CURIE" => [ "exp:s" , "http://example.org/perts" ] ,
885884 "odd CURIE" => [ "ex:perts" , "http://example.org/perts" ]
886885 } . each do |title , ( result , input ) |
887886 it title do
0 commit comments