diff options
author | James Lopez <james@jameslopez.es> | 2016-06-15 12:15:42 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-06-15 12:15:42 +0200 |
commit | f6896f9381b9d833e0db4d0e5be95f2ffc64561a (patch) | |
tree | 65def9241face0552fc3454a9f6cbb5257ea2309 /spec/lib/gitlab/import_export/project_tree_saver_spec.rb | |
parent | cbd0201fdb9d233da6c48b5ba419e7ea51c85f79 (diff) | |
download | gitlab-ce-f6896f9381b9d833e0db4d0e5be95f2ffc64561a.tar.gz |
fix annoying spec
Diffstat (limited to 'spec/lib/gitlab/import_export/project_tree_saver_spec.rb')
-rw-r--r-- | spec/lib/gitlab/import_export/project_tree_saver_spec.rb | 2 |
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 |