diff --git a/lib/rdf/spec/mutable.rb b/lib/rdf/spec/mutable.rb index 94ce5c7..cbb0a6d 100644 --- a/lib/rdf/spec/mutable.rb +++ b/lib/rdf/spec/mutable.rb @@ -59,6 +59,12 @@ expect { subject.load(RDF::Spec::TRIPLES_FILE, **{}) }.not_to raise_error end + it "should prefer base_uri argument over resource location" do + expect(RDF::Reader).to receive(:open) + .with(RDF::Spec::TRIPLES_FILE, base_uri: "http://example.org/location") + expect { subject.load(RDF::Spec::TRIPLES_FILE, base_uri: "http://example.org/location") }.not_to raise_error + end + it "should load statements" do subject.load RDF::Spec::TRIPLES_FILE expect(subject.size).to eq File.readlines(RDF::Spec::TRIPLES_FILE).size