Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 414 Bytes
use warnings;
use strict;
use Test::More;
use Data::Dumper;
use lib qw(t/lib);
use Mock::LWP::UserAgent;
use Net::Topsy;
plan tests => 2;
my $nt = Net::Topsy->new( key => 'foo' );
my $r = $nt->trending();
my $iter = $r->iter;
while ($iter->has_next) {
my $item = $iter->next;
ok($item,'got an item from the iterator');
Something went wrong with that request. Please try again.