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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-23 12:09:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-23 12:09:42 +0300
commite4bf776a8829e5186a0f63603c0be627b891d80e (patch)
tree537fe714bd336bfee9f30b101a5072950a04a62a /spec/frontend/fixtures/search.rb
parent1635eacd2a9293cd04d21e82def6e2c14ed01242 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/fixtures/search.rb')
-rw-r--r--spec/frontend/fixtures/search.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/frontend/fixtures/search.rb b/spec/frontend/fixtures/search.rb
index 025cc53c745..cbe3e373986 100644
--- a/spec/frontend/fixtures/search.rb
+++ b/spec/frontend/fixtures/search.rb
@@ -16,4 +16,19 @@ describe SearchController, '(JavaScript fixtures)', type: :controller do
expect(response).to be_successful
end
+
+ context 'search within a project' do
+ let(:namespace) { create(:namespace, name: 'frontend-fixtures') }
+ let(:project) { create(:project, :public, :repository, namespace: namespace, path: 'search-project') }
+
+ it 'search/blob_search_result.html' do
+ get :show, params: {
+ search: 'Send',
+ project_id: project.id,
+ scope: :blobs
+ }
+
+ expect(response).to be_successful
+ end
+ end
end