mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Merge branch 'fix_backup_spec' into 'master'
Fix Backup Spec
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user