summaryrefslogtreecommitdiff
path: root/spec/features/search
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2018-10-04 17:16:51 +0800
committerMark Chao <mchao@gitlab.com>2018-10-30 15:44:55 +0800
commita4ba973e24ef6767d635c0291c9b6ce8085aef28 (patch)
tree28efdf13b834db6267fd8bd64d798d8e694b0109 /spec/features/search
parentbc14e4ed1024efa1e0a411bd59e1339fb1af20c0 (diff)
downloadgitlab-ce-a4ba973e24ef6767d635c0291c9b6ce8085aef28.tar.gz
Allow FoundBlob to access language from gitattributes
Extract language_from_git_attributes as a concern so it can ben included in two blob classes.
Diffstat (limited to 'spec/features/search')
-rw-r--r--spec/features/search/user_searches_for_wiki_pages_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/search/user_searches_for_wiki_pages_spec.rb b/spec/features/search/user_searches_for_wiki_pages_spec.rb
index 3ee753b7d23..7225ca65492 100644
--- a/spec/features/search/user_searches_for_wiki_pages_spec.rb
+++ b/spec/features/search/user_searches_for_wiki_pages_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'User searches for wiki pages', :js do
let(:user) { create(:user) }
- let(:project) { create(:project, :wiki_repo, namespace: user.namespace) }
+ let(:project) { create(:project, :repository, :wiki_repo, namespace: user.namespace) }
let!(:wiki_page) { create(:wiki_page, wiki: project.wiki, attrs: { title: 'test_wiki', content: 'Some Wiki content' }) }
before do