Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Tuned up tests and added upload to duckpan, lets see if this is 0.001 :D
Browse files Browse the repository at this point in the history
  • Loading branch information
Getty committed Jan 25, 2012
1 parent dec2cab commit 2b013ea
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
5 changes: 3 additions & 2 deletions dist.ini
Expand Up @@ -43,8 +43,9 @@ File::Temp = 0.22
[ShareDir]
[MakeMaker]
[Manifest]
; [TestRelease]
; [ConfirmRelease]
[TestRelease]
[ConfirmRelease]
[UploadToDuckPAN]
[MetaJSON]
[MetaYAML]

Expand Down
10 changes: 6 additions & 4 deletions t/00-load.t
Expand Up @@ -11,18 +11,20 @@ BEGIN {
use_ok('DDG::Block');
use_ok('DDG::Block::Hash');
use_ok('DDG::Block::Regexp');
use_ok('DDG::Dir::Static');
use_ok('DDG::File::Static');
use_ok('DDG::Plugin');
use_ok('DDG::Plugin::Sample::Hash');
use_ok('DDG::Plugin::Sample::Regexp');
use_ok('DDG::Plugin::Sample::Regexp::Matches');
use_ok('DDG::Plugin::ZeroClickInfo');
use_ok('DDG::Query');
use_ok('DDG::Site');
use_ok('DDG::Site::DuckDuckGo');
use_ok('DDG::Util::Translate');
use_ok('DDG::ZeroClickInfo');

# use_ok('DDG::Dir::Static');
# use_ok('DDG::File::Static');
# use_ok('DDG::Site');
# use_ok('DDG::Site::DuckDuckGo');

}

done_testing;
10 changes: 6 additions & 4 deletions t/30-generate-testsite.t
Expand Up @@ -4,6 +4,8 @@ use strict;
use warnings;
use Test::More;

plan( skip_all => 'still in the pipe' );

use FindBin qw($Bin);
use lib "$Bin/lib";

Expand All @@ -15,7 +17,7 @@ isa_ok($site,'DDGTestSite');

my %files = $site->files;
my $stash = {
'test.en_US.html' => '<!DOCTYPE html>
'test.en_US.html' => '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -25,7 +27,7 @@ my $stash = {
:c:c
</body>
</html>',
'test.de_DE.html' => '<!DOCTYPE html>
'test.de_DE.html' => '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -35,7 +37,7 @@ my $stash = {
:c:c
</body>
</html>',
'index.de_DE.html' => '<!DOCTYPE html>
'index.de_DE.html' => '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -45,7 +47,7 @@ my $stash = {
b::b
</body>
</html>',
'index.en_US.html' => '<!DOCTYPE html>
'index.en_US.html' => '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 2 additions & 0 deletions t/35-block.t
Expand Up @@ -17,6 +17,8 @@ BEGIN {
)],
});

isa_ok($re_block,'DDG::Block::Regexp');

my $are_block = DDG::Block::Regexp->new({
plugins => [qw(
Sample::Regexp
Expand Down

0 comments on commit 2b013ea

Please sign in to comment.