Changeset 1392

Show
Ignore:
Timestamp:
08/19/06 15:58:21
Author:
miyagawa
Message:

use set_context

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/t/plugins/Widget-Simple/base.t

    r1359 r1392  
    88    my $block = shift; 
    99    my $context = $block->input; 
    10     no warnings 'redefine'; 
    11     local *Plagger::context = sub { $context }; # xxx 
     10    Plagger->set_context($context); 
    1211    my $entry = $context->update->feeds->[0]->entries->[0]; 
    1312    is $entry->widgets->[0]->html($entry), $block->expected, $block->name;