summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-16 14:30:16 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-16 14:30:16 -0800
commit5dae74118719e495b16733aca3c2607b9842f8dc (patch)
tree6868eace0f700029768affb480126afc2ce8eff4 /spec/gitlab_shell_spec.rb
parentbb88412570e604c1960ea3dd3bfc686f539576dc (diff)
downloadgitlab-shell-5dae74118719e495b16733aca3c2607b9842f8dc.tar.gz
Disable git-annex by default
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index af978b4..5abeeb9 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -75,6 +75,8 @@ describe GitlabShell do
let(:repo_path) { File.join(tmp_repos_path, 'dzaporozhets/gitlab.git') }
before do
+ GitlabConfig.any_instance.stub(git_annex_enabled?: true)
+
# Create existing project
FileUtils.mkdir_p(repo_path)
cmd = %W(git --git-dir=#{repo_path} init --bare)
@@ -187,7 +189,11 @@ describe GitlabShell do
end
describe 'git-annex' do
- before { ssh_cmd 'git-annex-shell commit /~/gitlab-ci.git SHA256' }
+ before do
+ GitlabConfig.any_instance.stub(git_annex_enabled?: true)
+ ssh_cmd 'git-annex-shell commit /~/gitlab-ci.git SHA256'
+ end
+
after { subject.exec }
it "should execute the command" do