Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fc74bf0c07
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.414 kb
#!perl
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();
isa_ok($r,'Net::Topsy::Result');
my $iter = $r->iter;
while ($iter->has_next) {
my $item = $iter->next;
ok($item,'got an item from the iterator');
}
}
Jump to Line
Something went wrong with that request. Please try again.