[Rt-commit] rt branch, 4.4/fix-timeworked-per-user-tests, created. rt-4.2.11-171-g665b762

? sunnavy sunnavy at bestpractical.com
Tue Sep 8 10:17:46 EDT 2015


The branch, 4.4/fix-timeworked-per-user-tests has been created
        at  665b7622adc9919b0899ee042e3b99d1fc9feab3 (commit)

- Log -----------------------------------------------------------------
commit 665b7622adc9919b0899ee042e3b99d1fc9feab3
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 8 22:14:18 2015 +0800

    we changed to %.2f for hour display in f7ddacfc, update tests accordingly

diff --git a/t/web/ticket_timeworked.t b/t/web/ticket_timeworked.t
index 4737bda..1fa677d 100644
--- a/t/web/ticket_timeworked.t
+++ b/t/web/ticket_timeworked.t
@@ -103,11 +103,11 @@ diag "checking parent ticket for expected timeworked data"; {
     $m->goto_ticket( $parent_id );
     $m->title_is( "#$parent_id: timeworked parent");
     $m->content_like(
-        qr{(?s)Worked:.+?value">2\.8 hours \(170 minutes\)},
+        qr{(?s)Worked:.+?value">2\.83 hours \(170 minutes\)},
         "found expected total TimeWorked in parent ticket"
     );
     $m->content_like(
-        qr{(?s)user_a:.+?value">1\.3 hours \(80 minutes\)},
+        qr{(?s)user_a:.+?value">1\.33 hours \(80 minutes\)},
         "found expected user_a TimeWorked in parent ticket"
     );
     $m->content_like(
@@ -133,7 +133,7 @@ diag "checking child ticket 2 for expected timeworked data"; {
     $m->goto_ticket( $child2_id );
     $m->title_is( "#$child2_id: child ticket 2");
     $m->content_like(
-        qr{(?s)Worked:.+?value">2\.1 hours \(125 minutes\)},
+        qr{(?s)Worked:.+?value">2\.08 hours \(125 minutes\)},
         "found expected total TimeWorked in child ticket 2"
     );
     $m->content_like(

-----------------------------------------------------------------------


More information about the rt-commit mailing list