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

be_executed.rb « matchers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fea863867550cdbf4cc2637aa893764f71060c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

# named as `get_executed` to avoid clashing
# with `be_executed === have_attributes(executed: true)`
RSpec::Matchers.define :get_executed do |args = []|
  include AfterNextHelpers

  match do |service_class|
    expect_next(service_class, *args).to receive(:execute)
  end
end