diff options
| author | Robert | 2017-11-17 11:32:47 +0100 | 
|---|---|---|
| committer | Robert | 2017-11-17 14:53:03 +0100 | 
| commit | 86082170302a5b07dc15fbc61b628bb89b775f04 (patch) | |
| tree | 1c0ec5babf179500d37c7bf79d4b2e9152a8a01c /spec/support/with_commit.rb | |
| parent | 1b84658f5f3ab98f7338a319ad1dc2f3ee8a1842 (diff) | |
| download | chouette-core-86082170302a5b07dc15fbc61b628bb89b775f04.tar.bz2 | |
Refs: #4461@0.75h;  Fixing netex_import after_create callback to after_commit on: :create
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 | 
