From 3a6ea11a67086676a27ce37abdc98783fda1a9ee Mon Sep 17 00:00:00 2001 From: Daniel M Barlow <7119502+danielmbarlow@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:45:45 +0200 Subject: [PATCH] Update rollback syntax in Testing doc --- docs/Testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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