Created
May 1, 2010 16:23
-
-
Save gr4y/386465 to your computer and use it in GitHub Desktop.
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: 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" |
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 /^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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recognized a little bug in project_steps.rb. Fixed it.