Skip to content

Commit

Permalink
Changed 03-custom-modifiers.t to use load-modifiers().
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovus committed Oct 9, 2010
1 parent b3ab14f commit 6da6654
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions t/03-custom-modifiers.t
Expand Up @@ -11,7 +11,6 @@ BEGIN {

use Test;
use Flower;
use Example::Modifiers;

plan 1;

Expand All @@ -20,7 +19,7 @@ my $xml = '<?xml version="1.0"?>';
my $template = '<test><woah tal:replace="woah:crazy"/></test>';
my $flower = Flower.new(:template($template));

$flower.add-modifiers(Example::Modifiers::all());
$flower.load-modifiers('Example::Modifiers');

is $flower.parse(crazy => 'hello world'), $xml~'<test>Woah, hello world, that\'s awesome!</test>', 'custom modifiers';

0 comments on commit 6da6654

Please sign in to comment.