From a2cdf54af2167ab0dcddec431c4176a6fbbde6c3 Mon Sep 17 00:00:00 2001 From: David Raphael Date: Fri, 12 Apr 2013 10:41:08 -0500 Subject: [PATCH] added additional expect for exception --- spec/integration/rest_batch_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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