gitlab-org--gitlab-foss/spec/support/matchers/be_a_target_duration.rb

7 lines
212 B
Ruby

# frozen_string_literal: true
RSpec::Matchers.define :be_a_target_duration do |expected|
match do |actual|
actual.is_a?(::Gitlab::EndpointAttributes::Config::Duration) && actual.name == expected
end
end