Skip to content

Commit

Permalink
Add test for description being included in search results.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 12, 2017
1 parent a921645 commit 7dfa40b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/model/search.t
Expand Up @@ -61,6 +61,16 @@ ok( $search->_not_rogue, '_not_rogue' );
);
}

{
my $module = 'Binary::Data::WithPod';
my $results = $search->search_web($module);
is(
$results->{results}->[0]->[0]->{description},
'razzberry pudding',
'description included in results'
);
}

{
my $id = 'JatCtNR2RGjcBIs1Y5C_zTzNcXU';
my $results = $search->search_descriptions($id);
Expand Down

0 comments on commit 7dfa40b

Please sign in to comment.