blob: ed14bcec9f2f0d9c9be8b7678c31b2ec235cc448 (
plain)
1
2
3
4
5
6
7
8
9
|
RSpec::Matchers.define :gitaly_request_with_repo_path do |path|
match { |actual| actual.repository.path == path }
end
RSpec::Matchers.define :gitaly_request_with_params do |params|
match do |actual|
params.reduce(true) { |r, (key, val)| r && actual.send(key) == val }
end
end
|