-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
U=Cormorant
committed
Feb 8, 2014
1 parent
6a1a652
commit bbab5be
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |