Commit 46b1c63b authored by Jacob Vosmaer's avatar Jacob Vosmaer

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.
parent b36751c8
......@@ -35,7 +35,7 @@ describe 'gitlab:app namespace rake task' do
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
......
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