mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-17 04:38:08 +01:00
fix #1108 where completed todos with notes could not be rendered on the done page
This commit is contained in:
parent
117d7c9e50
commit
11d40fb48b
3 changed files with 39 additions and 18 deletions
|
|
@ -34,6 +34,14 @@ Given /^I have ([0-9]+) completed todos$/ do |count|
|
|||
end
|
||||
end
|
||||
|
||||
Given /^I have ([0-9]+) completed todos with a note$/ do |count|
|
||||
context = @current_user.contexts.create!(:name => "context D")
|
||||
count.to_i.downto 1 do |i|
|
||||
todo = @current_user.todos.create!(:context_id => context.id, :description => "todo #{i}", :notes => "note #{i}")
|
||||
todo.complete!
|
||||
end
|
||||
end
|
||||
|
||||
Given /^"(.*)" depends on "(.*)"$/ do |successor_name, predecessor_name|
|
||||
successor = Todo.find_by_description(successor_name)
|
||||
predecessor = Todo.find_by_description(predecessor_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue