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 32760d6 commit 5220241Copy full SHA for 5220241
spec/client_spec.rb
@@ -147,8 +147,11 @@ def response(header)
147
end
148
149
it "handles successful response with default graph specified" do
150
- client = SPARQL::Client.new('http://dbpedia.org/sparql', graph: "https://example.org/")
+ WebMock.stub_request(:post, 'https://dbpedia.org/sparql?default-graph-uri=https://example.org/').
151
+ to_return(body: '{}', status: 200, headers: { 'Content-Type' => 'application/sparql-results+json'})
152
+ client = SPARQL::Client.new('https://dbpedia.org/sparql', graph: "https://example.org/")
153
client.query(query)
154
+ expect(WebMock).to have_requested(:post, "https://dbpedia.org/sparql?default-graph-uri=https://example.org/")
155
156
157
it "generates IOError when querying closed client" do
0 commit comments