Fix tests for RandomName

master
NeoSilky 2014-12-06 12:10:45 +00:00
parent 333dcc4d2c
commit 2bd36d37e0
2 changed files with 3 additions and 2 deletions

View File

@ -16,9 +16,10 @@ attribution github => ['https://github.com/stelim', 'Stefan Limbacher'],
twitter => ['http://twitter.com/stefanlimbacher', 'Stefan Limbacher'];
triggers start => 'random name','random person';
zci answer_type => "randomname";
zci is_cached => 0;
handle remainder => sub {
handle query => sub {
my $person = Data::RandomPerson->new()->create();
my $name = "$person->{firstname} $person->{lastname}";
my %genders = (m => 'Male', f => 'Female');

View File

@ -5,8 +5,8 @@ use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'rand';
zci is_cached => 0;
zci answer_type => "randomname";
ddg_goodie_test(
[