upgrade last of the project functions

This commit is contained in:
Reinier Balt 2010-10-22 11:55:54 +02:00
parent 2c47b27a87
commit d7a780ef0c
8 changed files with 20 additions and 18 deletions

View file

@ -1,5 +1,5 @@
Given /^I have a project "([^\"]*)" with (.*) todos$/ do |project_name, num_todos|
context = @current_user.contexts.create!(:name => "Context A")
context = @current_user.contexts.find_or_create_by_name("Context A")
project = @current_user.projects.create!(:name => project_name)
1.upto num_todos.to_i do |i|
@current_user.todos.create!(