Skip to content

Commit

Permalink
fix warnings in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bricas committed Dec 8, 2011
1 parent e64fe95 commit bfa5a7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/spore/02_enable.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ is scalar @{$client->middlewares}, 0, 'no middleware';

dies_ok {
$client->enable();
}, 'middleware name is required';
} 'middleware name is required';

dies_ok {
$client->enable('FOOBARBAZAWESOMEMIDDLEWARE');
}, 'middleware should be loadable';
} 'middleware should be loadable';

dies_ok {
$client->enable_if('Format::JSON');
}, 'enable if require a coderef';
} 'enable if require a coderef';

$client->enable('Dummy');
is scalar @{$client->middlewares}, 1, 'middleware dummy added';
Expand Down

0 comments on commit bfa5a7a

Please sign in to comment.