From 86082170302a5b07dc15fbc61b628bb89b775f04 Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 17 Nov 2017 11:32:47 +0100 Subject: Refs: #4461@0.75h; Fixing netex_import after_create callback to after_commit on: :create --- spec/support/with_commit.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/support/with_commit.rb (limited to 'spec/support/with_commit.rb') diff --git a/spec/support/with_commit.rb b/spec/support/with_commit.rb new file mode 100644 index 000000000..2b4725f89 --- /dev/null +++ b/spec/support/with_commit.rb @@ -0,0 +1,10 @@ +module WithCommit + def with_commit + yield + subject._run_commit_callbacks + end +end + +RSpec.configure do |conf| + conf.include WithCommit, type: :with_commit +end -- cgit v1.2.3