diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-28 12:11:43 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-28 12:11:43 +0100 |
commit | 46b1c63b7af29ecc24292b20b7f246ff5f189048 (patch) | |
tree | 1c234f56ff7574bcb39d32d96b12dea9050bf546 /spec/tasks | |
parent | b36751c89771d82f64635d4dccc624573d17c3c2 (diff) | |
download | gitlab-ce-46b1c63b7af29ecc24292b20b7f246ff5f189048.tar.gz |
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.
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index c2f1d4e1b1c..71a45eb2fa6 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -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 |