[Bps-public-commit] r19760 - Net-Google-Code/trunk/t

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue May 26 22:50:04 EDT 2009


Author: sunnavy
Date: Tue May 26 22:50:03 2009
New Revision: 19760

Modified:
   Net-Google-Code/trunk/t/02.issue.t

Log:
test for no attachment in comment 0 but other comments

Modified: Net-Google-Code/trunk/t/02.issue.t
==============================================================================
--- Net-Google-Code/trunk/t/02.issue.t	(original)
+++ Net-Google-Code/trunk/t/02.issue.t	Tue May 26 22:50:03 2009
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 19;
+use Test::More tests => 21;
 use Test::MockModule;
 
 # $content is a real page: http://code.google.com/p/chromium/issues/detail?id=14
@@ -94,3 +94,10 @@
 is( $issue->attachments->[0]->size, '11.7 KB', 'size of the 1st attachment' );
 
 is( $issue->updated, '2008-12-19T17:59:29', 'updated' );
+
+
+$content =
+  decode( 'utf8', read_file("$Bin/sample/02.issue_without_attachments.html") );
+$issue->load(14);
+is( $issue->updated, '2008-12-19T17:59:29', 'updated' );
+is_deeply( $issue->attachments, [], 'no attachments are extracted' );



More information about the Bps-public-commit mailing list