diff options
| author | Luc Donnet | 2017-11-23 08:50:05 +0100 |
|---|---|---|
| committer | Luc Donnet | 2017-11-23 08:50:05 +0100 |
| commit | d69312d870880bde378d50d329fe2dbb523f84e6 (patch) | |
| tree | c483dfb37aefef8a701a3c82a3c9f2cc5cc77d2d /spec/support/with_commit.rb | |
| parent | c1c2d2b8b8a2bbedcb0af1c8780839690ff8b2ad (diff) | |
| parent | 84ec338abe9fe09caed3edc62784235963463311 (diff) | |
| download | chouette-core-d69312d870880bde378d50d329fe2dbb523f84e6.tar.bz2 | |
Merge branch 'master' into staging
Diffstat (limited to 'spec/support/with_commit.rb')
| -rw-r--r-- | spec/support/with_commit.rb | 10 |
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 |
