From c16f7323bad61601df1ebe93475bd84aee532faf Mon Sep 17 00:00:00 2001 From: Patricio Cano Date: Mon, 29 Aug 2016 20:28:18 -0500 Subject: Added test for old Git LFS clients that submit an extra :oid argument to `git-lfs-authenticate` --- spec/gitlab_shell_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index 378b964..3c0fbf5 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -126,6 +126,19 @@ describe GitlabShell do its(:command) { should == 'git-lfs-authenticate' } its(:git_access) { should == 'git-upload-pack' } end + + describe 'git-lfs old clients' do + let(:repo_name) { 'dzaporozhets/gitlab.git' } + let(:ssh_args) { %W(git-lfs-authenticate dzaporozhets/gitlab.git download long_oid) } + + before do + subject.send :parse_cmd, ssh_args + end + + its(:repo_name) { should == 'dzaporozhets/gitlab.git' } + its(:git_cmd) { should == 'git-lfs-authenticate' } + its(:git_access) { should == 'git-upload-pack' } + end end describe :exec do -- cgit v1.2.1