Skip to content

Commit

Permalink
added additional expect for exception
Browse files Browse the repository at this point in the history
  • Loading branch information
David Raphael committed Apr 12, 2013
1 parent 7b87efb commit a2cdf54
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/integration/rest_batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2cdf54

Please sign in to comment.