#403: added specs for PublishTaskManagerJob
This commit is contained in:
parent
f5ebc43e2d
commit
e986cc6f4f
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue