debian-mirror-gitlab/spec/lib/after_commit_queue_spec.rb
2018-03-17 18:26:18 +05:30

15 lines
287 B
Ruby

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