File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,11 @@ def response(header)
147
147
end
148
148
149
149
it "handles successful response with default graph specified" do
150
- client = SPARQL ::Client . new ( 'http://dbpedia.org/sparql' , graph : "https://example.org/" )
150
+ 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/" )
151
153
client . query ( query )
154
+ expect ( WebMock ) . to have_requested ( :post , "https://dbpedia.org/sparql?default-graph-uri=https://example.org/" )
152
155
end
153
156
154
157
it "generates IOError when querying closed client" do
You can’t perform that action at this time.
0 commit comments