diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-08-29 20:28:18 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-09-06 12:06:45 -0500 |
commit | c16f7323bad61601df1ebe93475bd84aee532faf (patch) | |
tree | 5a62b11799e071d749de221e44c5868a5ce97601 | |
parent | a64f174d83caddfd3fe31698b5b2fd7701b5a573 (diff) | |
download | gitlab-shell-c16f7323bad61601df1ebe93475bd84aee532faf.tar.gz |
Added test for old Git LFS clients that submit an extra :oid argument to `git-lfs-authenticate`
-rw-r--r-- | spec/gitlab_shell_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
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 |