Add test for Geo::ProjectSyncWorker when project could not be found

parent 27011f77
......@@ -15,5 +15,9 @@ RSpec.describe Geo::ProjectSyncWorker do
expect(repository_sync_service).to have_received(:execute).once
end
it 'does not raise an error when project could not be found' do
expect { subject.perform(999, Time.now) }.not_to raise_error
end
end
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