[Bps-public-commit] r17610 - in Net-Google-Code/trunk/t: sample

fayland at bestpractical.com fayland at bestpractical.com
Wed Jan 7 06:16:22 EST 2009


Author: fayland
Date: Wed Jan  7 06:16:22 2009
New Revision: 17610

Modified:
   Net-Google-Code/trunk/t/10.downloads.t
   Net-Google-Code/trunk/t/sample/10.download.html

Log:
add more tests in 10.download.t

Modified: Net-Google-Code/trunk/t/10.downloads.t
==============================================================================
--- Net-Google-Code/trunk/t/10.downloads.t	(original)
+++ Net-Google-Code/trunk/t/10.downloads.t	Wed Jan  7 06:16:22 2009
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 10;
+use Test::More tests => 15;
 use Test::MockModule;
 use FindBin qw/$Bin/;
 
@@ -49,6 +49,11 @@
 is $entries[0]->{link}, 'http://code.google.com/p/net-google-code/downloads/detail?name=Net-Google-Code-0.01.tar.gz';
 
 my $entry = $downloads->entry( 'Net-Google-Code-0.01.tar.gz' );
+is $entry->{uploader}, 'sunnavy';
 is $entry->{upload_time}, 'Tue Jan  6 00:16:06 2009';
+is $entry->{download_count}, 6;
+is $entry->{download_url}, 'http://net-google-code.googlecode.com/files/Net-Google-Code-0.01.tar.gz';
+is $entry->{file_size}, '37.4 KB';
+is $entry->{file_SHA1}, '5073de2276f916cf5d74d7abfd78a463e15674a1';
 
 1;
\ No newline at end of file

Modified: Net-Google-Code/trunk/t/sample/10.download.html
==============================================================================
--- Net-Google-Code/trunk/t/sample/10.download.html	(original)
+++ Net-Google-Code/trunk/t/sample/10.download.html	Wed Jan  7 06:16:22 2009
@@ -22,10 +22,10 @@
 
   <font size="-1">
  
- <b>fayland at gmail.com</b>
+ <b>XXX at gmail.com</b>
  
  | <a href="/p/support/wiki/WhatsNew" style="color:#a03">What's new?</a>
- | <a href="/u/fayland/">Profile</a>
+ | <a href="/u/XXX/">Profile</a>
  | <a href="/hosting/settings">Settings</a>
 
  | <a href="/p/support/">Help</a>
@@ -260,7 +260,7 @@
  <tr><th align="left">Uploaded: </th><td>
  <span class="date" style="white-space:nowrap" title="Tue Jan  6 00:16:06 2009">Yesterday (21 hours ago)</span>
  </td></tr>
- <tr><th align="left">Downloads: </th><td>1</td></tr>
+ <tr><th align="left">Downloads: </th><td>6</td></tr>
  
  </table>
 <br>



More information about the Bps-public-commit mailing list