#403: added specs for PublishTaskManagerJob

This commit is contained in:
Vokhmin Alexey V 2014-06-23 20:28:38 +04:00
parent f5ebc43e2d
commit e986cc6f4f
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,10 @@ class PublishTaskManagerJob
@queue = :middle
def self.perform
PublishTaskManagerJob.new.perform
end
def perform
regenerate_metadata_for_software_center
resign_repositories
regenerate_metadata

View File

@ -0,0 +1,12 @@
require 'spec_helper'
describe PublishTaskManagerJob do
subject { PublishTaskManagerJob }
it 'ensures that not raises error' do
expect do
subject.perform
end.to_not raise_exception
end
end