Welcome to mirror list, hosted at ThFree Co, Russian Federation.

after_commit_queue_spec.rb « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6e7c2ec236386ea58e45e9334e3154133efaab42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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