Commit b36751c8 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use VERSION contanst in backup specs

parent f4b2cee6
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment