Commit 46b1c63b7af29ecc24292b20b7f246ff5f189048

Authored by Jacob Vosmaer
1 parent b36751c8

Make backup version blocker test more robust

Assuming that VERSION != VERSION.reverse is not robust. This will fail
at e.g. version 6.6.6.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
spec/tasks/gitlab/backup_rake_spec.rb
@@ -35,7 +35,7 @@ describe 'gitlab:app namespace rake task' do @@ -35,7 +35,7 @@ describe 'gitlab:app namespace rake task' do
35 let(:gitlab_version) { Gitlab::VERSION } 35 let(:gitlab_version) { Gitlab::VERSION }
36 36
37 it 'should fail on mismatch' do 37 it 'should fail on mismatch' do
38 - YAML.stub load_file: {gitlab_version: gitlab_version.reverse} 38 + YAML.stub load_file: {gitlab_version: "not #{gitlab_version}" }
39 expect { run_rake_task }.to raise_error SystemExit 39 expect { run_rake_task }.to raise_error SystemExit
40 end 40 end
41 41