diff --git a/spec/integration/rest_batch_spec.rb b/spec/integration/rest_batch_spec.rb index b71851c..907a3bd 100644 --- a/spec/integration/rest_batch_spec.rb +++ b/spec/integration/rest_batch_spec.rb @@ -466,9 +466,11 @@ ] # this does raise error - @neo.execute_query("start person_n=node:person(ssn = '000-00-0001') - set bar = {foo}", - { :other => "what" }) + 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 end