c45341c816
This new param allows us to share project information between components that don't share or don't have access to the same filesystem mountpoints, for example between Gitaly and Rails or between Rails and Gitlab-Shell hooks. The previous parameters are still supported, but if found, gl_repository is prefered. The old parameters should be deprecated once all components support the new format.
6 lines
187 B
Ruby
6 lines
187 B
Ruby
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
|