[Rt-commit] [rtir] 05/08: Use content_like, which provides a readable test failure

Kevin Falcone falcone at bestpractical.com
Mon Aug 18 12:26:08 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 3.2/clean-up-articles-code
in repository rtir.

commit 843fa2c409b554ba203b3c54009c33a5b10d2627
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Aug 15 21:24:59 2014 -0400

    Use content_like, which provides a readable test failure
---
 t/rtfm/basics.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/rtfm/basics.t b/t/rtfm/basics.t
index 2e79c49..5664593 100644
--- a/t/rtfm/basics.t
+++ b/t/rtfm/basics.t
@@ -31,7 +31,7 @@ $agent->submit();
 
 is($agent->status, 200, "attempt to create succeeded");
 
-like($agent->content, qr/Incident Report #\d+: looking for articles/, "back on IR page");
+$agent->content_like(qr/Incident Report #\d+: looking for articles/, "back on IR page");
 
 $agent->follow_link_ok({text => $article_name}, "back to article");
-like($agent->content, qr/this is a summary/, "found the summary of the article");
+$agent->content_like( qr/this is a summary/, "found the summary of the article");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list