diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-23 09:09:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-23 09:09:42 +0000 |
commit | e4bf776a8829e5186a0f63603c0be627b891d80e (patch) | |
tree | 537fe714bd336bfee9f30b101a5072950a04a62a /spec/frontend/fixtures/search.rb | |
parent | 1635eacd2a9293cd04d21e82def6e2c14ed01242 (diff) | |
download | gitlab-ce-e4bf776a8829e5186a0f63603c0be627b891d80e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/fixtures/search.rb')
-rw-r--r-- | spec/frontend/fixtures/search.rb | 15 |
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 |