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.
This commit is contained in:
parent
b36751c897
commit
46b1c63b7a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ describe 'gitlab:app namespace rake task' do
|
||||||
let(:gitlab_version) { Gitlab::VERSION }
|
let(:gitlab_version) { Gitlab::VERSION }
|
||||||
|
|
||||||
it 'should fail on mismatch' do
|
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
|
expect { run_rake_task }.to raise_error SystemExit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue