summaryrefslogtreecommitdiff
path: root/spec/support/matchers/gitlab_git_matchers.rb
blob: aea1603db054ba951e2fdc10b280739551fc2c2f (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

RSpec::Matchers.define :gitlab_git_repository_with do |values|
  match do |actual|
    actual.is_a?(Gitlab::Git::Repository) &&
      values.all? { |k, v| actual.send(k) == v }
  end
end