From b36751c89771d82f64635d4dccc624573d17c3c2 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 28 Feb 2014 11:57:58 +0100 Subject: [PATCH] Use VERSION contanst in backup specs --- spec/tasks/gitlab/backup_rake_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index a5541be..c2f1d4e 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -32,7 +32,7 @@ describe 'gitlab:app namespace rake task' do Rake::Task["gitlab:shell:setup"].stub invoke: true end - let(:gitlab_version) { %x{git rev-parse HEAD}.gsub(/\n/,"") } + let(:gitlab_version) { Gitlab::VERSION } it 'should fail on mismatch' do YAML.stub load_file: {gitlab_version: gitlab_version.reverse} -- libgit2 0.21.2