Permalink
Browse files

Test for return_one off.

  • Loading branch information...
1 parent e9171aa commit 679073cb76fae4c05a1b935ab6bb3bb16cbca1cf yegg committed Feb 11, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 t/35-block.t
View
@@ -85,6 +85,7 @@ BEGIN {
my $words_block = DDG::Block::Words->new({
plugins => $words_plugins,
+ return_one => 0,
before_build => sub {
my ( $self, $class ) = @_;
ok($class eq $words_plugins->[$before_wp],'$class should be '.$words_plugins->[$before_wp]);
@@ -170,6 +171,13 @@ BEGIN {
wo => [zci('a|or|b|or|c','woblockarr')],
re => [],
},
+
+ # Triggers multiple plugins.
+ 'or two' => {
+ wo => [zci('or|two','woblockarr'), zci('or','woblocktwo')],
+ re => [],
+ },
+
);
while (@queries) {

0 comments on commit 679073c

Please sign in to comment.