We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18c1c86 commit 5fb4774Copy full SHA for 5fb4774
1 file changed
spec/query_solutions_spec.rb
@@ -259,4 +259,26 @@
259
expect {|b| solutions.each(&b)}.to yield_successive_args(uri, lit)
260
end
261
262
+
263
+ describe "#bindings" do
264
+ subject {
265
+ RDF::Query::Solutions(
266
+ RDF::Query::Solution.new(
267
+ author: RDF::URI("http://ar.to/#self"),
268
+ age: RDF::Literal(0)
269
+ ),
270
271
+ author: RDF::Literal("Gregg Kellogg"),
272
273
+ )
274
275
+ }
276
+ it "binds author twice" do
277
+ expect(subject.bindings).to include(author: [RDF::URI("http://ar.to/#self"), RDF::Literal("Gregg Kellogg")])
278
+ end
279
280
+ it "binds age twice" do
281
+ expect(subject.bindings).to include(age: [RDF::Literal(0), RDF::Literal(0)])
282
283
284
0 commit comments