Commit 081957d1 authored by Rémy Coutable's avatar Rémy Coutable

Fix broken specs due to ff076d88

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 13106d27
......@@ -379,7 +379,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
blobs = results.objects('blobs')
expect(blobs.first["_source"]["blob"]["content"]).to include("def")
expect(results.blobs_count).to eq 4
expect(results.blobs_count).to eq 5
end
it 'finds blobs from public projects only' do
......@@ -388,7 +388,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
Gitlab::Elastic::Helper.refresh_index
results = described_class.new(user, 'def', [project_1.id])
expect(results.blobs_count).to eq 4
expect(results.blobs_count).to eq 5
results = described_class.new(user, 'def', [project_1.id, project_2.id])
expect(results.blobs_count).to eq 8
......@@ -412,7 +412,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
results = described_class.new(user, 'add', limit_project_ids)
commits = results.objects('commits')
expect(commits.first.message).to include("add")
expect(commits.first.message).to include("Add")
expect(results.commits_count).to eq 5
end
......@@ -422,7 +422,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
Gitlab::Elastic::Helper.refresh_index
results = described_class.new(user, 'add', [project_1.id])
expect(results.commits_count).to eq 5
expect(results.commits_count).to eq 24
results = described_class.new(user, 'add', [project_1.id, project_2.id])
expect(results.commits_count).to eq 10
......
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