summaryrefslogtreecommitdiff
path: root/spec/features/projects/wiki/user_updates_wiki_page_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/wiki/user_updates_wiki_page_spec.rb')
-rw-r--r--spec/features/projects/wiki/user_updates_wiki_page_spec.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/spec/features/projects/wiki/user_updates_wiki_page_spec.rb b/spec/features/projects/wiki/user_updates_wiki_page_spec.rb
index b69d6b46ac8..ef82d2375dd 100644
--- a/spec/features/projects/wiki/user_updates_wiki_page_spec.rb
+++ b/spec/features/projects/wiki/user_updates_wiki_page_spec.rb
@@ -12,34 +12,32 @@ feature 'Projects > Wiki > User updates wiki page', feature: true do
click_link 'Wiki'
end
- context 'wiki project is in the user namespace' do
+ context 'in the user namespace' do
let(:project) { create(:project, namespace: user.namespace) }
- scenario 'user can update the wiki home page' do
+ scenario 'the home page' do
click_link 'Edit'
- expect(page).to have_content('Home · Edit Page')
-
fill_in :wiki_content, with: 'My awesome wiki!'
click_button 'Save changes'
- expect(page).to have_content("Home · last edited by #{user.name}")
+ expect(page).to have_content('Home')
+ expect(page).to have_content("last edited by #{user.name}")
expect(page).to have_content('My awesome wiki!')
end
end
- context 'wiki project is in the user namespace' do
+ context 'in a group namespace' do
let(:project) { create(:project, namespace: create(:group, :public)) }
- scenario 'user can update the wiki home page' do
+ scenario 'the home page' do
click_link 'Edit'
- expect(page).to have_content('Home · Edit Page')
-
fill_in :wiki_content, with: 'My awesome wiki!'
click_button 'Save changes'
- expect(page).to have_content("Home · last edited by #{user.name}")
+ expect(page).to have_content('Home')
+ expect(page).to have_content("last edited by #{user.name}")
expect(page).to have_content('My awesome wiki!')
end
end