diff options
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r-- | spec/gitlab_shell_spec.rb | 8 |
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 |