summaryrefslogtreecommitdiff
path: root/spec/models/ability_spec.rb
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2019-01-09 16:05:52 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2019-01-31 16:51:53 +0100
commit740f07b1ec16e225a29e4b910e64775dd3985e88 (patch)
tree16a76320a74fd3e7dfb4ea9b8ee228a90e0ce637 /spec/models/ability_spec.rb
parentf27cba0feef5d664c97082a0fe1b2e4b3d62f839 (diff)
downloadgitlab-ce-740f07b1ec16e225a29e4b910e64775dd3985e88.tar.gz
Fixed bug when external wiki is enabled
When the external wiki is enabled, the internal wiki link is replaced by the external wiki url. But the internal wiki is still accessible. In this change the external wiki will have its own tab in the sidebar and only if the services are disabled the tab (and access rights) will not be displayed.
Diffstat (limited to 'spec/models/ability_spec.rb')
-rw-r--r--spec/models/ability_spec.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/models/ability_spec.rb b/spec/models/ability_spec.rb
index 199f49d0bf2..eee80e9bad7 100644
--- a/spec/models/ability_spec.rb
+++ b/spec/models/ability_spec.rb
@@ -298,7 +298,6 @@ describe Ability do
context 'wiki named abilities' do
it 'disables wiki abilities if the project has no wiki' do
- expect(project).to receive(:has_external_wiki?).and_return(false)
expect(subject).not_to be_allowed(:read_wiki)
expect(subject).not_to be_allowed(:create_wiki)
expect(subject).not_to be_allowed(:update_wiki)