finish migration of the feeds page

This commit is contained in:
Reinier Balt 2010-11-27 17:12:09 +01:00
parent 51106d015e
commit 2fa431ef54
14 changed files with 205 additions and 128 deletions

View file

@ -24,6 +24,16 @@ Given /^I have a project called "([^"]*)"$/ do |project_name|
Given "there exists a project \"#{project_name}\" for user \"#{@current_user.login}\""
end
Given /^I have the following projects:$/ do |table|
table.hashes.each do |project|
Given 'I have a project called "'+project[:project_name]+'"'
end
end
Given /^I have no projects$/ do
Project.delete_all
end
When /^I visit the "([^\"]*)" project$/ do |project_name|
@project = Project.find_by_name(project_name)
@project.should_not be_nil