spec/spec_helper.rb
def formatted(tasks)
  if tasks.is_a? Array
    tasks.map {|task| task.to_row}
  else
    tasks.tasks.map {|id,task| task.to_row}
  end
end
# returns tasks list formated for console
returns tasks list formated for console
returns tasks list formated for console
def formatted(tasks)
  if tasks.is_a? Array
    tasks.map {|task| task.to_row}
  else
    tasks.tasks.map {|id,task| task.to_row}
  end
end
def formatted ( tasks ) if tasks . is_a? Array tasks . map { | task | task . to_row } else tasks . tasks . map { | id , task | task . to_row } end end
returns tasks list formated for console
returns tasks list formated for console
tasks