diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
---|---|---|
committer | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
commit | 67ccc8b52aceebea9c0cb22b3277daf0b467c78e (patch) | |
tree | 6139a7674fe0f9d70a0af51c383fd72aa91cc54c /spec/tasks | |
parent | 493b5ff011d5788f669adabf978a40b49b8cf6a3 (diff) | |
download | gitlab-ce-67ccc8b52aceebea9c0cb22b3277daf0b467c78e.tar.gz |
Replace old hashes with new 1.9 ruby hashes (rebase)
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index babbf2916f8..4ad63114cb4 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -22,21 +22,21 @@ describe 'gitlab:app namespace rake task' do context 'gitlab version' do before do - Dir.stub :glob => [] + Dir.stub glob: [] Dir.stub :chdir - File.stub :exists? => true - Kernel.stub :system => true + File.stub exists?: true + Kernel.stub system: true end let(:gitlab_version) { %x{git rev-parse HEAD}.gsub(/\n/,"") } it 'should fail on mismach' do - YAML.stub :load_file => {:gitlab_version => gitlab_version.reverse} + YAML.stub load_file: {gitlab_version: gitlab_version.reverse} expect { run_rake_task }.to raise_error SystemExit end it 'should invoke restoration on mach' do - YAML.stub :load_file => {:gitlab_version => gitlab_version} + 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 |