diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-08-17 10:00:31 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-08-17 10:00:31 +0100 |
commit | 21b9e4a36d9485bd802dfed4bc28d0e067b5ccda (patch) | |
tree | 8c498449ce547695998f1d2a90ea7f155beac756 /spec/lib | |
parent | 944ed6a481fa69e92dfe68a9ef28de6087393893 (diff) | |
download | gitlab-ce-ee-2628-backport.tar.gz |
Backports EE mirror stuck handling feature (https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2628) to CEee-2628-backport
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/after_commit_queue_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/lib/after_commit_queue_spec.rb b/spec/lib/after_commit_queue_spec.rb new file mode 100644 index 00000000000..6e7c2ec2363 --- /dev/null +++ b/spec/lib/after_commit_queue_spec.rb @@ -0,0 +1,15 @@ +require 'spec_helper' + +describe AfterCommitQueue do + it 'runs after transaction is committed' do + called = false + test_proc = proc { called = true } + + project = build(:project) + project.run_after_commit(&test_proc) + + project.save + + expect(called).to be true + end +end |