Skip to content

Instantly share code, notes, and snippets.

View joelhelbling's full-sized avatar
💭
Perfect love casts out fear.

Joel Helbling joelhelbling

💭
Perfect love casts out fear.
View GitHub Profile
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
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"