Commit 3f818a3d authored by Marin Jankovski's avatar Marin Jankovski

Update wiki tests.

parent f04d5bfa
...@@ -203,7 +203,7 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps ...@@ -203,7 +203,7 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end end
And 'I add various links to the wiki page' do And 'I add various links to the wiki page' do
fill_in "wiki[content]", with: "[test](test)\n[GitLab API doc](doc/api/README.md)\n[Rake tasks](doc/raketasks)\n" fill_in "wiki[content]", with: "[test](test)\n[GitLab API doc](api)\n[Rake tasks](raketasks)\n"
fill_in "wiki[message]", with: "Adding links to wiki" fill_in "wiki[message]", with: "Adding links to wiki"
click_button "Create page" click_button "Create page"
end end
...@@ -242,8 +242,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps ...@@ -242,8 +242,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end end
Then 'I see Gitlab API document' do Then 'I see Gitlab API document' do
current_path.should == project_blob_path(@project, "master/doc/api/README.md") current_path.should == project_wiki_path(@project, "api")
page.should have_content "Status codes" page.should have_content "Editing"
end end
And 'I click on Rake tasks link' do And 'I click on Rake tasks link' do
...@@ -251,9 +251,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps ...@@ -251,9 +251,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
end end
Then 'I see Rake tasks directory' do Then 'I see Rake tasks directory' do
current_path.should == project_tree_path(@project, "master/doc/raketasks") current_path.should == project_wiki_path(@project, "raketasks")
page.should have_content "backup_restore.md" page.should have_content "Editing"
page.should have_content "maintenance.md"
end end
Given 'I go directory which contains README file' do Given 'I go directory which contains README file' do
......
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