]> iEval git - webservice-strike.git/blobdiff - t/WebService-Strike.t
Bump version and update Changes
[webservice-strike.git] / t / WebService-Strike.t
index 7713555614d44afcd20e1aa777f9a2d6c55a90a1..853a98fac898b0e04f31956b230097b38b549ad6 100644 (file)
@@ -4,7 +4,7 @@ use warnings;
 
 use Data::Dumper qw/Dumper/;
 use Test::RequiresInternet qw/getstrike.net 443/;
-use Test::More tests => 9;
+use Test::More tests => 11;
 use Try::Tiny;
 BEGIN { use_ok('WebService::Strike') };
 
@@ -25,6 +25,7 @@ subtest 'order' => sub {
 is $t1->date, 1420502400, 'date';
 is $t2->title, 'FreeBSD 7.1 i386.DVD.iso', 'title';
 like $t1->torrent, qr/^d/, 'torrent file starts with d';
+like $t1->description, qr#GNU/Linux#, 'description contains GNU/Linux';
 
 try {
        strike 'aaa';
@@ -42,3 +43,6 @@ try {
 
 my $p = strike_search 'Perl', 1;
 is @{$p->file_names}, $p->count, 'file_names has count elements';
+
+my $imdb = strike('ED70C185E3E3246F30B2FDB08D504EABED5EEA3F')->imdb;
+is $imdb->{title}, 'The Walking Dead', 'imdb title';
This page took 0.022007 seconds and 4 git commands to generate.