From c39315e9f1a1898502dbb2b2cbebca0f1b7c41b2 Mon Sep 17 00:00:00 2001 From: Tom Johnson Date: Sat, 16 Jan 2016 14:54:12 -0800 Subject: [PATCH] Don't depend on order when checking query results --- lib/rdf/spec/queryable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdf/spec/queryable.rb b/lib/rdf/spec/queryable.rb index 0f37e83..29913be 100644 --- a/lib/rdf/spec/queryable.rb +++ b/lib/rdf/spec/queryable.rb @@ -72,7 +72,7 @@ it "returns #{result.inspect} given #{pattern.inspect}" do solutions = [] subject.send(method, pattern) {|s| solutions << s} - expect(solutions).to eq result + expect(solutions).to contain_exactly(*result) end end end