App-JIRAPrint
view release on metacpan or search on metacpan
#! perl -w
use Test::More;
use Test::MockModule;
use App::JIRAPrint;
# use Log::Any::Adapter qw/Stderr/;
my $j = App::JIRAPrint->new({ url => 'https://something.atlassian.net', username => 'blabla', password => 'blablabla', project => 'BLA', 'sprint' => '123' });
ok( $j->jira() , "Ok got jira client");
{
my $jira = Test::MockModule->new('JIRA::REST');
$jira->mock( POST => sub{ return { issues => [ { foo => 1 , bar => 'a' , key => 'whatever' } ] } ; } );
ok( $j->fetch_issues() , "Ok got issues");
}
done_testing();
( run in 1.027 second using v1.01-cache-2.11-cpan-d8267643d1d )