Skip to content

Commit

Permalink
added test 03_crawler.t
Browse files Browse the repository at this point in the history
  • Loading branch information
U=Cormorant committed Feb 8, 2014
1 parent 6a1a652 commit bbab5be
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions t/03_crawler.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
use t::Util;
use Test::More;
use Test::More::Hooks;
use Test::Exception;
use Scope::Guard qw(scope_guard);

use Uc::Model::Twitter::Crawler;

plan tests => 1;

subtest "ucrawl-tweet" => sub {
my $class;
before { $class = Uc::Model::Twitter::Crawler->new(); };
after { undef $class; };

plan tests => 1;

subtest("\$class->can" => sub {
plan tests => 8;
isa_ok $class, 'Uc::Model::Twitter::Crawler', '$class';

can_ok $class, $_ for qw(
conf
user
fav
mention
status
run
crawl
);
}) or return; # stop test unless all method can be called

};

done_testing;

0 comments on commit bbab5be

Please sign in to comment.