1479f17227
The previously failing Spinach steps have been fixed with this commit. I have also added new steps that cover the entire usage of the Wiki system. The new Spinach steps revealed a minor bug in the Delete page process. The path for the "Delete this page" button was previously set to `project_wikis_page(@project, @wiki)` when it should have been using the singular `project_wiki_page(@project, @wiki)` path helper. The link has been corrected and all steps are now passing.
10 lines
347 B
Text
10 lines
347 B
Text
%h3.page_title
|
|
Editing page
|
|
= render partial: 'main_links'
|
|
%hr
|
|
= render 'form'
|
|
|
|
.pull-right
|
|
- if @wiki.persisted? && can?(current_user, :admin_wiki, @project)
|
|
= link_to project_wiki_path(@project, @wiki), confirm: "Are you sure you want to delete this page?", method: :delete, class: "btn btn-small btn-remove" do
|
|
Delete this page
|