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
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-02-04 20:35:53 +0300
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-02-05 21:27:20 +0300
commit694124db7b59b2e7704652a8922424b639c2b7c1 (patch)
tree0bc1b2c033ec84b6d9099fa5b6e93c47d85dacab /spec
parente14b27bb9438d1db689c7098c343eab5f3d579dd (diff)
Merge branch 'fj-regression-external-wiki-url' into 'master'
Changed external wiki query method to prevent attribute caching Closes #57228 See merge request gitlab-org/gitlab-ce!24907 (cherry picked from commit 7ffbfeb1f79b18b6a3a42e73d12b9680e3e3eb48) 247bd122 Changed external wiki query method to prevent attribute caching
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/projects_helper_spec.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb
index 10f61731206..990750f0b2f 100644
--- a/spec/helpers/projects_helper_spec.rb
+++ b/spec/helpers/projects_helper_spec.rb
@@ -372,21 +372,16 @@ describe ProjectsHelper do
end
context 'when project has external wiki' do
- before do
- allow(project).to receive(:has_external_wiki?).and_return(true)
- end
-
it 'includes external wiki tab' do
+ project.create_external_wiki_service(active: true, properties: { 'external_wiki_url' => 'https://gitlab.com' })
+
is_expected.to include(:external_wiki)
end
end
context 'when project does not have external wiki' do
- before do
- allow(project).to receive(:has_external_wiki?).and_return(false)
- end
-
it 'does not include external wiki tab' do
+ expect(project.external_wiki).to be_nil
is_expected.not_to include(:external_wiki)
end
end