Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-02-28 15:11:43 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-02-28 15:11:43 +0400
commit46b1c63b7af29ecc24292b20b7f246ff5f189048 (patch)
tree1c234f56ff7574bcb39d32d96b12dea9050bf546 /spec/tasks/gitlab
parentb36751c89771d82f64635d4dccc624573d17c3c2 (diff)
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/gitlab')
-rw-r--r--spec/tasks/gitlab/backup_rake_spec.rb2
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