Skip to content
Snippets Groups Projects
Commit ba9ff219 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge branch 'fix_backup_spec' into 'master'

Fix Backup Spec
parents 8a06144c 46b1c63b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -32,10 +32,10 @@ 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}
YAML.stub load_file: {gitlab_version: "not #{gitlab_version}" }
expect { run_rake_task }.to raise_error SystemExit
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment