mirror of
https://github.com/michaeldv/pit.git
synced 2025-12-10 00:15:35 +00:00
22 lines
504 B
Ruby
22 lines
504 B
Ruby
module Pit
|
|
module Task
|
|
|
|
def should_do_cascading_delete
|
|
`#{@pit} project -c project`
|
|
5.times do |t|
|
|
`#{@pit} task -c task#{t}`
|
|
5.times do |n|
|
|
`#{@pit} note -c task#{t}_note#{n}`
|
|
end
|
|
end
|
|
`#{@pit} task`.should.match /\* 5:/m
|
|
`#{@pit} note -e 21 hello21`
|
|
`#{@pit} note -d 21`
|
|
`#{@pit} note -e 22 hello22`
|
|
`#{@pit} note -d 22`
|
|
`#{@pit} task -d`
|
|
`#{@pit} task`.should_not.match /[\s|\*] 5:/m
|
|
end
|
|
end
|
|
end
|