2017-02-15 21:08:30 -05:00
|
|
|
RSpec::Matchers.define :gitaly_request_with_repo_path do |path|
|
2017-02-05 13:04:23 -05:00
|
|
|
match { |actual| actual.repository.path == path }
|
|
|
|
end
|
2017-03-17 15:36:46 -04:00
|
|
|
|
|
|
|
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
|