Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/fixtures/search.rb')
-rw-r--r--spec/frontend/fixtures/search.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/frontend/fixtures/search.rb b/spec/frontend/fixtures/search.rb
index 7819d0774a7..264ce7d010c 100644
--- a/spec/frontend/fixtures/search.rb
+++ b/spec/frontend/fixtures/search.rb
@@ -7,7 +7,7 @@ RSpec.describe SearchController, '(JavaScript fixtures)', type: :controller do
render_views
- let_it_be(:user) { create(:admin) }
+ let_it_be(:user) { create(:user) }
before(:all) do
clean_frontend_fixtures('search/')
@@ -66,9 +66,13 @@ RSpec.describe SearchController, '(JavaScript fixtures)', type: :controller do
offset: 0)
end
+ before do
+ project.add_developer(user)
+ end
+
it 'search/blob_search_result.html' do
- expect_next_instance_of(SearchService) do |search_service|
- expect(search_service).to receive(:search_objects).and_return(blobs)
+ allow_next_instance_of(SearchServicePresenter) do |search_service|
+ allow(search_service).to receive(:search_objects).and_return(blobs)
end
get :show, params: {