Fixes 'mark as done' test

This commit is contained in:
Leandro Freitas
2015-05-05 09:50:50 -03:00
parent 40faa56012
commit f30ac979a1

View File

@@ -1,6 +1,7 @@
let s:here = expand('<sfile>:p:h') let s:here = expand('<sfile>:p:h')
let s:tc = unittest#testcase#new('Mask As Done', let s:context = todo#txt#__context__()
\ { 'data': s:here . '/tc_mark_as_done.todo.txt' }) let s:context['data'] = s:here . '/tc_mark_as_done.todo.txt'
let s:tc = unittest#testcase#new('Mark As Done', s:context)
let s:TODAY = strftime("%Y-%m-%d") let s:TODAY = strftime("%Y-%m-%d")
@@ -18,7 +19,7 @@ let s:ALL_TASKS_DONE = [
function! s:tc.test_mark_as_done() function! s:tc.test_mark_as_done()
call self.data.goto('lorem_ipsum') call self.data.goto('lorem_ipsum')
call self.data.execute('call todo#txt#mark_as_done()') call todo#txt#mark_as_done()
call self.assert_equal(s:FIRST_TASK_DONE, self.data.get('lorem_ipsum')) call self.assert_equal(s:FIRST_TASK_DONE, self.data.get('lorem_ipsum'))
endfunction endfunction