We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b499fe commit a331b02Copy full SHA for a331b02
lib/rdf/spec/mutable.rb
@@ -59,6 +59,12 @@
59
expect { subject.load(RDF::Spec::TRIPLES_FILE, **{}) }.not_to raise_error
60
end
61
62
+ it "should prefer base_uri argument over resource location" do
63
+ expect(RDF::Reader).to receive(:open)
64
+ .with(RDF::Spec::TRIPLES_FILE, base_uri: "http://example.org/location")
65
+ expect { subject.load(RDF::Spec::TRIPLES_FILE, base_uri: "http://example.org/location") }.not_to raise_error
66
+ end
67
+
68
it "should load statements" do
69
subject.load RDF::Spec::TRIPLES_FILE
70
expect(subject.size).to eq File.readlines(RDF::Spec::TRIPLES_FILE).size
0 commit comments