App-Rssfilter

 view release on metacpan or  search on metacpan

t/lib/App/Rssfilter/FromHash/Test/SplitForCtorWithHashRef.pm  view on Meta::CPAN

use strict;
use warnings;

package App::Rssfilter::FromHash::Test::SplitForCtorWithHashRef;

use Test::Routine;
use Test::More;
use namespace::autoclean;
use Method::Signatures;

requires 'split_for_ctor';
requires 'fake_class';
requires 'results_of_split_for_ctor';

around 'split_for_ctor' => func( $orig, $self, @args ) {
    $orig->( $self, { castor => 'pollux', ajax => 'achilles' }, @args );
};

test split_for_ctor_with_hashref => method {
    is_deeply(
        { @{ shift @{ $self->results_of_split_for_ctor } } },
        { castor => 'pollux', ajax => 'achilles' },
        'returns the flattened hash reference'
    );
};

1;



( run in 0.544 second using v1.01-cache-2.11-cpan-39bf76dae61 )