From 84526770e8c0219fcbc1354265f5ffe5af385b09 Mon Sep 17 00:00:00 2001 From: jagtalon Date: Thu, 15 Jan 2015 14:53:40 +0000 Subject: [PATCH] IsAwesome::watermelonwarrior: clean up. --- lib/DDG/Goodie/IsAwesome/watermelonwarrior.pm | 4 +--- t/IsAwesome/watermelonwarrior.t | 9 +-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/DDG/Goodie/IsAwesome/watermelonwarrior.pm b/lib/DDG/Goodie/IsAwesome/watermelonwarrior.pm index fe54b5403..af2f6093c 100644 --- a/lib/DDG/Goodie/IsAwesome/watermelonwarrior.pm +++ b/lib/DDG/Goodie/IsAwesome/watermelonwarrior.pm @@ -6,7 +6,6 @@ use DDG::Goodie; zci answer_type => "is_awesome_watermelonwarrior"; zci is_cached => 1; -# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section. name "IsAwesome watermelonwarrior"; description "My first Goodie, it let's the world konw that watermelonwarrior is awesome"; primary_example_queries "duckduckhack watermelonwarrior"; @@ -21,9 +20,8 @@ triggers start => "duckduckhack watermelonwarrior"; # Handle statement handle remainder => sub { - return if $_; - return "Watermelonwarrior is awesome and has successfully completed the tutorial" + return "watermelonwarrior is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; }; 1; diff --git a/t/IsAwesome/watermelonwarrior.t b/t/IsAwesome/watermelonwarrior.t index acd12df28..c76dc8674 100644 --- a/t/IsAwesome/watermelonwarrior.t +++ b/t/IsAwesome/watermelonwarrior.t @@ -10,14 +10,7 @@ zci is_cached => 1; ddg_goodie_test( [qw( DDG::Goodie::IsAwesome::watermelonwarrior )], - # At a minimum, be sure to include tests for all: - # - primary_example_queries - # - secondary_example_queries - #'example query' => test_zci('query'), - # Try to include some examples of queries on which it might - # appear that your answer will trigger, but does not. - #'bad example query' => undef, - 'duckduckhack watermelonwarrior' => test_zci('Watermelonwarrior is awesome and has successfully completed the tutorial'), + 'duckduckhack watermelonwarrior' => test_zci('watermelonwarrior is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'), 'duckduckhack watermelonwarrior is awesome' => undef, );