[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-887-g27a79bb

Shawn Moore sartak at bestpractical.com
Wed Dec 15 19:57:44 EST 2010


The branch, 3.9-trunk has been updated
       via  27a79bbb05ae0dcd7ee6745c2e7021db1b3c7904 (commit)
       via  88d9f0580ac488b4031742803ef13469b1151ecb (commit)
      from  f54031c07ce86be01c7d401abfd88e258b468c56 (commit)

Summary of changes:
 t/web/dashboards.t |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit 88d9f0580ac488b4031742803ef13469b1151ecb
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Dec 15 18:22:12 2010 -0500

    Actually clear the user's attribute cache in t/web/dashboards.t

diff --git a/t/web/dashboards.t b/t/web/dashboards.t
index f1aabb3..2447824 100644
--- a/t/web/dashboards.t
+++ b/t/web/dashboards.t
@@ -176,11 +176,8 @@ $m->click_button(name => 'Save');
 $m->content_lacks("Permission denied");
 $m->content_contains("Subscribed to dashboard different dashboard");
 
-RT::Record->FlushCache if RT::Record->can('FlushCache');
-TODO: {
-    local $TODO = "some kind of caching is still happening (it works if I remove the check above)";
-    is($user_obj->Attributes->Named('Subscription'), 1, "we have a subscription");
-};
+$user_obj->Attributes->RedoSearch;
+is($user_obj->Attributes->Named('Subscription'), 1, "we have a subscription");
 
 $m->get_ok("/Dashboards/Modify.html?id=$id");
 $m->follow_link_ok({text => "Subscription"});

commit 27a79bbb05ae0dcd7ee6745c2e7021db1b3c7904
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Dec 15 18:26:24 2010 -0500

    Expire attribute cache instead of RT::Record because we're testing attributes

diff --git a/t/web/dashboards.t b/t/web/dashboards.t
index 2447824..362cbd0 100644
--- a/t/web/dashboards.t
+++ b/t/web/dashboards.t
@@ -158,7 +158,7 @@ $m->click_button(name => 'Save');
 $m->content_contains("Permission denied");
 $m->warning_like(qr/Unable to subscribe to dashboard.*Permission denied/, "got a permission denied warning when trying to subscribe to a dashboard");
 
-RT::Record->FlushCache if RT::Record->can('FlushCache');
+$user_obj->Attributes->RedoSearch;
 is($user_obj->Attributes->Named('Subscription'), 0, "no subscriptions");
 
 $user_obj->PrincipalObj->GrantRight(Right => 'SubscribeDashboard', Object => $RT::System);

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


More information about the Rt-commit mailing list