Cucumber features: Team, SSH keys
This commit is contained in:
parent
eb00cb69dd
commit
22d6dc2b3b
9 changed files with 162 additions and 8 deletions
18
features/step_definitions/project_wiki_steps.rb
Normal file
18
features/step_definitions/project_wiki_steps.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
Given /^I visit project wiki page$/ do
|
||||
visit project_wiki_path(@project, :index)
|
||||
end
|
||||
|
||||
Given /^I create Wiki page$/ do
|
||||
fill_in "Title", :with => 'Test title'
|
||||
fill_in "Content", :with => '[link test](test)'
|
||||
click_on "Save"
|
||||
end
|
||||
|
||||
Then /^I should see newly created wiki page$/ do
|
||||
page.should have_content("Test title")
|
||||
page.should have_content("link test")
|
||||
|
||||
click_link "link test"
|
||||
|
||||
page.should have_content("Editing page")
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue