Commit 3df1baec authored by Markus Koller's avatar Markus Koller

Merge branch 'fix-group-wiki-feature-spec' into 'master'

Fix group wiki empty state spec

Closes #258567

See merge request gitlab-org/gitlab!43689
parents 2b7b0ed9 a3d6ff43
...@@ -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