Skip to content

Instantly share code, notes, and snippets.

@lukesh
Created December 7, 2010 18:55
Show Gist options
  • Save lukesh/732214 to your computer and use it in GitHub Desktop.
Save lukesh/732214 to your computer and use it in GitHub Desktop.
When 'I create a new comment' do
steps %Q{
When I enter comment text
And I press "Add Comment"
}
end
When 'I enter comment text' do
@comment = Factory :comment, :section => @section, :user => @me
steps %Q{
When I fill in "Comment" with #{ @comment[:body].inspect }
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment