diff options
author | Andrew Kumanyaev <me@zzet.org> | 2014-01-14 20:57:29 +0300 |
---|---|---|
committer | Andrew Kumanyaev <me@zzet.org> | 2014-01-14 20:57:29 +0300 |
commit | 414ead57ee294618e73ef62f521b11d98fdce3a0 (patch) | |
tree | 9f7ceccd1a66d04a4acc165cf3c6181c6bac721f /spec/tasks | |
parent | 71f1a84599101b2af2f74ae54ebfb2f880935985 (diff) | |
download | gitlab-ce-414ead57ee294618e73ef62f521b11d98fdce3a0.tar.gz |
Fix deprecation in specs
DEPRECATION: `expect { }.not_to raise_error(SpecificErrorClass)` is deprecated. Use `expect { }.not_to raise_error` (with no args) instead. Called from /home/travis/build/gitlabhq/gitlabhq/spec/tasks/gitlab/backup_rake_spec.rb:42:in `block (4 levels) in <top (required)>'.
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 cba243226db..8644157b3fb 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -39,7 +39,7 @@ describe 'gitlab:app namespace rake task' do YAML.stub load_file: {gitlab_version: gitlab_version} Rake::Task["gitlab:backup:db:restore"].should_receive :invoke Rake::Task["gitlab:backup:repo:restore"].should_receive :invoke - expect { run_rake_task }.to_not raise_error SystemExit + expect { run_rake_task }.to_not raise_error end end |