From 6c334216b3c04fd15168e9b8535a0059db2f8c7d Mon Sep 17 00:00:00 2001 From: Chris Grigg Date: Tue, 23 Jun 2015 21:04:27 -0400 Subject: [PATCH] respond_to? > is_a? for Embedded in tests --- spec/shared_examples/node_with_tx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/shared_examples/node_with_tx.rb b/spec/shared_examples/node_with_tx.rb index 29cf966d..6c6529d7 100644 --- a/spec/shared_examples/node_with_tx.rb +++ b/spec/shared_examples/node_with_tx.rb @@ -94,7 +94,7 @@ tx = Neo4j::Transaction.new result = Neo4j::Session.current.query.match(p: :Person).pluck('collect(p)').first expect(result).to be_a(Array) - expect(result.first).to be_a(Neo4j::Node) + expect(result.first).to respond_to(:neo_id) expect(result.first.labels).to include(:Person) ensure tx.close