summaryrefslogtreecommitdiff
path: root/features/steps/project/project_wiki.rb
blob: 902e9ce158ca19137372ae721ab703ad2a15161e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class ProjectWiki < Spinach::FeatureSteps
  include SharedAuthentication
  include SharedProject
  include SharedNote
  include SharedPaths

  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
end