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:
Jacob Vosmaer 2014-02-28 12:11:43 +01:00
parent b36751c897
commit 46b1c63b7a

View file

@ -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