Skip to content

Instantly share code, notes, and snippets.

@gr4y
Created May 1, 2010 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gr4y/386465 to your computer and use it in GitHub Desktop.
Save gr4y/386465 to your computer and use it in GitHub Desktop.
Feature: Manage Projects
In order to manage projects
As a developer
I want to create and manage projects
Scenario: Projects List
Given I have projects titled blog-app, todo-app
When I go to the list of projects
Then I should see "my blog-app"
And I should see "my todo-app"
Given /^I have no projects$/ do
Project.delete_all
end
Then /^I should have ([0-9]+) project$/ do |count|
Project.count.should == count.to_i
end
Given /^I have projects titled (.+)$/ do |titles|
titles.split(', ').each do |title|
Project.create!(:title => title,:description => "my #{title}")
end
end
@gr4y
Copy link
Author

gr4y commented May 1, 2010

I recognized a little bug in project_steps.rb. Fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment