Fixed tests

This commit is contained in:
Dmitriy Zaporozhets 2012-12-21 13:37:44 +02:00
parent 4398bdf2c9
commit b510f8c496
2 changed files with 8 additions and 8 deletions

View file

@ -15,8 +15,8 @@ describe 'gitlab:app namespace rake task' do
end
let :run_rake_task do
Rake::Task["gitlab:app:backup_restore"].reenable
Rake.application.invoke_task "gitlab:app:backup_restore"
Rake::Task["gitlab:backup:restore"].reenable
Rake.application.invoke_task "gitlab:backup:restore"
end
context 'gitlab version' do
@ -36,8 +36,8 @@ describe 'gitlab:app namespace rake task' do
it 'should invoke restoration on mach' do
YAML.stub :load_file => {:gitlab_version => gitlab_version}
Rake::Task["gitlab:app:db_restore"].should_receive :invoke
Rake::Task["gitlab:app:repo_restore"].should_receive :invoke
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
end
end