Fix the spec to schedule file download when node is disabled

parent 952134af
......@@ -14,11 +14,13 @@ describe GeoFileDownloadDispatchWorker do
describe '#perform' do
it 'does not schedule anything when node is disabled' do
expect(GeoFileDownloadWorker).not_to receive(:perform_async)
create(:lfs_object, :with_file)
@secondary.enabled = false
@secondary.save
expect(GeoFileDownloadWorker).not_to receive(:perform_async)
subject.perform
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment