diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-28 11:57:58 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-28 11:57:58 +0100 |
commit | b36751c89771d82f64635d4dccc624573d17c3c2 (patch) | |
tree | 31520c8363dc096924951ccf6170010094aba0a8 /spec/tasks | |
parent | f4b2cee695ace72d9eb31fd0fefa42745148b6a4 (diff) | |
download | gitlab-ce-b36751c89771d82f64635d4dccc624573d17c3c2.tar.gz |
Use VERSION contanst in backup specs
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index a5541bee876..c2f1d4e1b1c 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} |