This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^there is a document titled "([^\"]*)"$/ do |title| | |
Document.create!(:title => title, :body => 'Some content.') | |
end | |
When /^I visit the "([^\"]*)" document page$/ do |title| | |
visit "/documents/#{title}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Wiki Documents | |
In order to manage wiki content | |
As a user | |
I want see, create and edit wiki documents | |
# | |
Scenario: View document page | |
Given there is a document titled "TestDocument" | |
When I visit the "TestDocument" document page | |
Then I should see "TestDocument" |
NewerOlder