diff --git a/docs/Testing.rst b/docs/Testing.rst index 1cdff114a..54b0fc7cb 100644 --- a/docs/Testing.rst +++ b/docs/Testing.rst @@ -86,7 +86,7 @@ If you are using RSpec you can perform tests in a transaction as you would using config.around do |example| ActiveGraph::Base.transaction do |tx| example.run - tx.failure + tx.rollback if tx.open? end end