summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-16 09:17:51 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-16 09:17:51 -0800
commit6c12bf39b302cc8913f462ca0c3fd9579b354f26 (patch)
tree74c195e9eba8af74d2fb4ecd41ae95824c408320 /spec/gitlab_shell_spec.rb
parentdb77a6120745364036512c31b93428cd0714b884 (diff)
downloadgitlab-shell-6c12bf39b302cc8913f462ca0c3fd9579b354f26.tar.gz
Add more git-annex tests
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_spec.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index bd47d79..af978b4 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -185,6 +185,15 @@ describe GitlabShell do
subject.should_not_receive(:exec_cmd)
end
end
+
+ describe 'git-annex' do
+ before { ssh_cmd 'git-annex-shell commit /~/gitlab-ci.git SHA256' }
+ after { subject.exec }
+
+ it "should execute the command" do
+ subject.should_receive(:exec_cmd).with("git-annex-shell", "commit", File.join(tmp_repos_path, 'gitlab-ci.git'), "SHA256")
+ end
+ end
end
describe :validate_access do
@@ -232,5 +241,4 @@ describe GitlabShell do
def ssh_cmd(cmd)
ENV['SSH_ORIGINAL_COMMAND'] = cmd
end
-
end