aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/with_commit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/with_commit.rb')
-rw-r--r--spec/support/with_commit.rb10
1 files changed, 10 insertions, 0 deletions
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