Fix tests for RandomName
parent
333dcc4d2c
commit
2bd36d37e0
|
@ -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');
|
||||
|
|
|
@ -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(
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue