Commit a3d6ff43 authored by Sean McGivern's avatar Sean McGivern Committed by Markus Koller

Fix group wiki feature specs

These need `stub_group_wikis` to show group wikis at all, let alone the
empty state.
parent 512594bd
...@@ -3,10 +3,16 @@ ...@@ -3,10 +3,16 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Group > User views empty wiki' do RSpec.describe 'Group > User views empty wiki' do
include WikiHelpers
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:wiki) { create(:group_wiki, group: group) } let(:wiki) { create(:group_wiki, group: group) }
before do
stub_group_wikis(true)
end
it_behaves_like 'User views empty wiki' do it_behaves_like 'User views empty wiki' do
context 'when group is public' do context 'when group is public' do
let(:group) { create(:group, :public) } let(:group) { create(:group, :public) }
......
...@@ -3,11 +3,14 @@ ...@@ -3,11 +3,14 @@
require "spec_helper" require "spec_helper"
RSpec.describe 'Group wikis' do RSpec.describe 'Group wikis' do
include WikiHelpers
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let(:wiki) { create(:group_wiki, user: user) } let(:wiki) { create(:group_wiki, user: user) }
before do before do
stub_group_wikis(true)
wiki.container.add_owner(user) wiki.container.add_owner(user)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment