diff --git a/spec/integration/rest_batch_spec.rb b/spec/integration/rest_batch_spec.rb index 907a3bd..bc61a7d 100644 --- a/spec/integration/rest_batch_spec.rb +++ b/spec/integration/rest_batch_spec.rb @@ -465,14 +465,18 @@ { :other => "what" } ] + # this does raise error expect { @neo.execute_query("start person_n=node:person(ssn = '000-00-0001') set bar = {foo}", { :other => "what" }) }.to raise_exception Neography::SyntaxException - - batch_result = @neo.batch *batch_commands + + expect { + batch_result = @neo.batch *batch_commands + }.to raise_exception Neography::SyntaxException + end end