Merge pull request #825 from zekiel/master

zekiel's quick-start goodie
master
Rob Emery 2014-12-09 13:04:56 +00:00
commit 35980248f6
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package DDG::Goodie::IsAwesome::zekiel;
# ABSTRACT: A simple goodie by zekiel
use DDG::Goodie;
zci answer_type => "is_awesome_zekiel";
zci is_cached => 1;
name "IsAwesome zekiel";
description "Describes who exactly is awesome and all of his/her many accomplishment.";
primary_example_queries "duckduckhack zekiel";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/zekiel.pm";
attribution github => ["https://github.com/zekiel", "zekiel"],
twitter => "zacpappis";
triggers start => "duckduckhack zekiel", "zekiel duckduckhack";
handle remainder => sub {
return if $_;
return "zekiel is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

19
t/IsAwesome/zekiel.t Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_zekiel";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::zekiel
)],
'duckduckhack zekiel' => test_zci('zekiel is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack zekiel is awesome' => undef,
);
done_testing;