summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-06-15 12:15:42 +0200
committerJames Lopez <james@jameslopez.es>2016-06-15 12:15:42 +0200
commitf6896f9381b9d833e0db4d0e5be95f2ffc64561a (patch)
tree65def9241face0552fc3454a9f6cbb5257ea2309
parentcbd0201fdb9d233da6c48b5ba419e7ea51c85f79 (diff)
downloadgitlab-ce-f6896f9381b9d833e0db4d0e5be95f2ffc64561a.tar.gz
fix annoying spec
-rw-r--r--spec/lib/gitlab/import_export/project_tree_saver_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/import_export/project_tree_saver_spec.rb b/spec/lib/gitlab/import_export/project_tree_saver_spec.rb
index f2d8e5595d6..8d29b2f8fd1 100644
--- a/spec/lib/gitlab/import_export/project_tree_saver_spec.rb
+++ b/spec/lib/gitlab/import_export/project_tree_saver_spec.rb
@@ -94,7 +94,7 @@ describe Gitlab::ImportExport::ProjectTreeSaver, services: true do
end
it 'has pipeline builds' do
- expect(saved_project_json['pipelines'].first['statuses'].first['type']).to eq('Ci::Build')
+ expect(saved_project_json['pipelines'].first['statuses'].count { |hash| hash['type'] == 'Ci::Build'}).to eq(1)
end
it 'has pipeline commits' do