Commit 3f3cb349 authored by Valery Sizov's avatar Valery Sizov Committed by Sean McGivern

add update guide 9.2-9.3

parent ab6b7025
...@@ -378,7 +378,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do ...@@ -378,7 +378,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
results = described_class.new(user, 'def', limit_project_ids) results = described_class.new(user, 'def', limit_project_ids)
blobs = results.objects('blobs') blobs = results.objects('blobs')
expect(blobs.first["_source"]["blob"]["content"]).to include("def") expect(blobs.first['_source']['blob']['content']).to include('def')
expect(results.blobs_count).to eq 5 expect(results.blobs_count).to eq 5
end end
...@@ -418,7 +418,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do ...@@ -418,7 +418,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
blobs = described_class.new(user, term, [project_1.id]).objects('blobs') blobs = described_class.new(user, term, [project_1.id]).objects('blobs')
blobs.map do |blob| blobs.map do |blob|
blob["_source"]["blob"]["path"] blob['_source']['blob']['path']
end end
end end
...@@ -454,7 +454,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do ...@@ -454,7 +454,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
it 'finds wiki blobs' do it 'finds wiki blobs' do
blobs = results.objects('wiki_blobs') blobs = results.objects('wiki_blobs')
expect(blobs.first["_source"]["blob"]["content"]).to include("term") expect(blobs.first['_source']['blob']['content']).to include("term")
expect(results.wiki_blobs_count).to eq 1 expect(results.wiki_blobs_count).to eq 1
end end
...@@ -462,7 +462,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do ...@@ -462,7 +462,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
project_1.add_guest(user) project_1.add_guest(user)
blobs = results.objects('wiki_blobs') blobs = results.objects('wiki_blobs')
expect(blobs.first["_source"]["blob"]["content"]).to include("term") expect(blobs.first['_source']['blob']['content']).to include("term")
expect(results.wiki_blobs_count).to eq 1 expect(results.wiki_blobs_count).to eq 1
end end
......
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