Add Spinach coverage for Gollum Wiki system and correct the Delete link.

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.
This commit is contained in:
Dan Knox 2013-03-10 14:37:26 -07:00
parent ea9b3687db
commit 1479f17227
5 changed files with 102 additions and 10 deletions

View file

@ -161,7 +161,7 @@ module SharedPaths
end
Given "I visit my project's wiki page" do
visit project_wiki_path(@project, :index)
visit project_wiki_path(@project, :home)
end
When 'I visit project hooks page' do
@ -256,7 +256,7 @@ module SharedPaths
end
Given 'I visit project wiki page' do
visit project_wiki_path(@project, :index)
visit project_wiki_path(@project, :home)
end
def root_ref