aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/with_commit.rb
diff options
context:
space:
mode:
authorLuc Donnet2017-11-23 08:50:05 +0100
committerLuc Donnet2017-11-23 08:50:05 +0100
commitd69312d870880bde378d50d329fe2dbb523f84e6 (patch)
treec483dfb37aefef8a701a3c82a3c9f2cc5cc77d2d /spec/support/with_commit.rb
parentc1c2d2b8b8a2bbedcb0af1c8780839690ff8b2ad (diff)
parent84ec338abe9fe09caed3edc62784235963463311 (diff)
downloadchouette-core-d69312d870880bde378d50d329fe2dbb523f84e6.tar.bz2
Merge branch 'master' into staging
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