diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-05 22:08:29 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-05 22:08:29 +0000 |
commit | 9e041f2185ecb957e1f3d1205ea3bac54a5eb803 (patch) | |
tree | 4dfdfc2ae250c90138c272429341af53f53eb7af /spec/support | |
parent | cc9edff6dcc4b73aa20683dee6021d6693533743 (diff) | |
parent | 8bc381db90c92bca6ba868d1588af1ad1a41073b (diff) | |
download | gitlab-ce-9e041f2185ecb957e1f3d1205ea3bac54a5eb803.tar.gz |
Merge branch '29925-gitlab-shell-hooks-can-no-longer-send-absolute-paths-to-gitlab-ce' into 'master'
Generate and handle a gl_repository param to pass around components
Closes #29925
See merge request !10992
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/matchers/gitlab_git_matchers.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/matchers/gitlab_git_matchers.rb b/spec/support/matchers/gitlab_git_matchers.rb new file mode 100644 index 00000000000..c840cd4bf2d --- /dev/null +++ b/spec/support/matchers/gitlab_git_matchers.rb @@ -0,0 +1,6 @@ +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 |