[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.4-125-ge3650d9

Shawn Moore sartak at bestpractical.com
Wed Oct 6 15:50:33 EDT 2010


The branch, 3.9-trunk has been updated
       via  e3650d932c72daef8f63c8badc760c17d2e4694f (commit)
      from  297a6af0efff8501460d1e02e70916c45482b35f (commit)

Summary of changes:
 t/web/query_log.t |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit e3650d932c72daef8f63c8badc760c17d2e4694f
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Oct 6 15:53:54 2010 -0400

    Don't hardcode root's id of 12

diff --git a/t/web/query_log.t b/t/web/query_log.t
index 001992f..0a8af76 100644
--- a/t/web/query_log.t
+++ b/t/web/query_log.t
@@ -9,9 +9,12 @@ RT->Config->Set(StatementLog => 1);
 my ($baseurl, $m) = RT::Test->started_ok;
 ok $m->login, 'logged in';
 
+my $root = RT::User->new($RT::SystemUser);
+$root->LoadByEmail('root at localhost');
+
 $m->get_ok("/Admin/Tools/Queries.html");
 $m->text_contains("/index.html", "we include info about a page we hit while logging in");
 $m->text_contains("Executed SQL query at", "stack traces");
 $m->text_like(qr/RT::Test::start_standalone_server\(.*\) called at/, "stack traces");
-$m->text_contains("SELECT * FROM Principals WHERE id = '12'", "we interpolate bind params");
+$m->text_contains("SELECT * FROM Principals WHERE id = '".$root->id."'", "we interpolate bind params");
 

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


More information about the Rt-commit mailing list