debian-mirror-gitlab/spec/support/matchers/be_executed.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
308 B
Ruby
Raw Permalink Normal View History

2021-09-30 23:02:18 +05:30
# 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