mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-02 19:10:16 +01:00
upgrade last of the project functions
This commit is contained in:
parent
2c47b27a87
commit
d7a780ef0c
8 changed files with 20 additions and 18 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue