Commit 3f818a3d58bbfcd009e9985abb835fb4de56cadf

Authored by Marin Jankovski
1 parent f04d5bfa

Update wiki tests.

Showing 1 changed file with 5 additions and 6 deletions   Show diff stats
features/steps/project/markdown_render.rb
@@ -203,7 +203,7 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps @@ -203,7 +203,7 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
203 end 203 end
204 204
205 And 'I add various links to the wiki page' do 205 And 'I add various links to the wiki page' do
206 - fill_in "wiki[content]", with: "[test](test)\n[GitLab API doc](doc/api/README.md)\n[Rake tasks](doc/raketasks)\n" 206 + fill_in "wiki[content]", with: "[test](test)\n[GitLab API doc](api)\n[Rake tasks](raketasks)\n"
207 fill_in "wiki[message]", with: "Adding links to wiki" 207 fill_in "wiki[message]", with: "Adding links to wiki"
208 click_button "Create page" 208 click_button "Create page"
209 end 209 end
@@ -242,8 +242,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps @@ -242,8 +242,8 @@ class Spinach::Features::ProjectMarkdownRender < Spinach::FeatureSteps
242 end 242 end
243 243
244 Then 'I see Gitlab API document' do 244 Then 'I see Gitlab API document' do
245 - current_path.should == project_blob_path(@project, "master/doc/api/README.md")  
246 - page.should have_content "Status codes" 245 + current_path.should == project_wiki_path(@project, "api")
  246 + page.should have_content "Editing"
247 end 247 end
248 248
249 And 'I click on Rake tasks link' do 249 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
251 end 251 end
252 252
253 Then 'I see Rake tasks directory' do 253 Then 'I see Rake tasks directory' do
254 - current_path.should == project_tree_path(@project, "master/doc/raketasks")  
255 - page.should have_content "backup_restore.md"  
256 - page.should have_content "maintenance.md" 254 + current_path.should == project_wiki_path(@project, "raketasks")
  255 + page.should have_content "Editing"
257 end 256 end
258 257
259 Given 'I go directory which contains README file' do 258 Given 'I go directory which contains README file' do