summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-05 15:38:56 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-05 15:38:56 +0100
commit7e117b4c9d7fe51215fc2af46c2429db7b71f32c (patch)
tree5e9d0b07db5e4e74b3abb8680b4a5b911c3ee97d /spec/lib/gitlab
parenta01994bf075ccade4487b398bb59ef7f9ef21522 (diff)
downloadgitlab-ce-7e117b4c9d7fe51215fc2af46c2429db7b71f32c.tar.gz
Assert on correctly restoring pipelines after an import
Diffstat (limited to 'spec/lib/gitlab')
-rw-r--r--spec/lib/gitlab/import_export/project_tree_restorer_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
index 45e983a8604..9dfd879a1bc 100644
--- a/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+++ b/spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
@@ -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