Fixes 'date' test

This commit is contained in:
Leandro Freitas
2015-05-05 09:52:28 -03:00
parent f30ac979a1
commit b1ed8608d1

View File

@@ -24,7 +24,7 @@ let s:DATE_INSERTED_AFTER_PRIORITY_VISUAL = [
function! s:tc.test_insert_date_normal_mode()
call self.data.goto('lorem_ipsum')
call self.data.execute('call todo#txt#prepend_date()', 'lorem_ipsum')
call todo#txt#prepend_date()
call self.assert_equal(s:DATE_INSERTED, self.data.get('lorem_ipsum'))
endfunction
@@ -40,13 +40,11 @@ function! s:tc.test_insert_date_visual_mode()
endfunction
function! s:tc.test_insert_date_after_priority_normal_mode()
call self.data.goto('date_after_priority')
call self.data.execute('call todo#txt#prepend_date()', 'date_after_priority')
call self.assert_equal(s:DATE_INSERTED_AFTER_PRIORITY, self.data.get('date_after_priority'))
endfunction
function! s:tc.test_insert_date_after_priority_visual_mode()
call self.data.goto('date_after_priority_visual')
call self.data.visual_execute('call todo#txt#prepend_date()', 'date_after_priority_visual')
call self.assert_equal(s:DATE_INSERTED_AFTER_PRIORITY_VISUAL, self.data.get('date_after_priority_visual'))
endfunction