diff options
| author | cedricnjanga | 2017-11-22 10:20:03 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-22 10:20:03 +0100 |
| commit | eec1d9e43509a1677d346584ee24cd3ee6f8c124 (patch) | |
| tree | 5ea0ffc28a65f7178e5f11ae19cff353139d3159 /spec/support/with_commit.rb | |
| parent | 577204834de4dfcd1851fc9b5f85558eaa141a89 (diff) | |
| parent | f01e81604053e9cbdaf4b84534214e37fbfcae5e (diff) | |
| download | chouette-core-eec1d9e43509a1677d346584ee24cd3ee6f8c124.tar.bz2 | |
Merge branch 'master' into 4941-refactoring_object_id
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 |
