[Rt-commit] r18854 - rt/3.999/branches/datetime/t/api
sartak at bestpractical.com
sartak at bestpractical.com
Thu Mar 19 14:58:02 EDT 2009
Author: sartak
Date: Thu Mar 19 14:58:01 2009
New Revision: 18854
Modified:
rt/3.999/branches/datetime/t/api/reminders.t
Log:
Use RT::DateTime in t/api/reminders.t
Modified: rt/3.999/branches/datetime/t/api/reminders.t
==============================================================================
--- rt/3.999/branches/datetime/t/api/reminders.t (original)
+++ rt/3.999/branches/datetime/t/api/reminders.t Thu Mar 19 14:58:01 2009
@@ -33,13 +33,12 @@
isnt($id , 0, 'Success creating ticket');
# Add reminder
-my $due_obj = RT::Date->new( RT->system_user);
-$due_obj->set_to_now;
+my $due = RT::DateTime->now(current_user => RT->system_user);
ok(my ( $add_id, $add_msg, $txnid ) = $t->reminders->add(
subject => 'TestReminder',
owner => 'root',
- due => $due_obj->iso
- ), 'Add reminder');
+ due => $due,
+), 'Add reminder');
# Check that the new Reminder is here
my $reminders = $t->reminders->collection;
More information about the Rt-commit
mailing list