#403: added specs for PublishTaskManagerJob
This commit is contained in:
parent
f5ebc43e2d
commit
e986cc6f4f
|
@ -2,6 +2,10 @@ class PublishTaskManagerJob
|
||||||
@queue = :middle
|
@queue = :middle
|
||||||
|
|
||||||
def self.perform
|
def self.perform
|
||||||
|
PublishTaskManagerJob.new.perform
|
||||||
|
end
|
||||||
|
|
||||||
|
def perform
|
||||||
regenerate_metadata_for_software_center
|
regenerate_metadata_for_software_center
|
||||||
resign_repositories
|
resign_repositories
|
||||||
regenerate_metadata
|
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