Assert on correctly restoring pipelines after an import

This commit is contained in:
Grzegorz Bizon 2018-01-05 15:38:56 +01:00
parent a01994bf07
commit 7e117b4c9d

View file

@ -181,6 +181,10 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
end
context 'when restoring hierarchy of pipeline, stages and jobs' do
it 'restores pipelines' do
expect(Ci::Pipeline.all.count).to be 5
end
it 'restores pipeline stages' do
expect(Ci::Stage.all.count).to be 6
end