Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

hack at the Request Factory until Pod Coverage stops freaking

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
  • Loading branch information...
commit d93500ec6fa54aa13bf233e094c838d298c279e1 1 parent 952a119
@xenoterracide authored
Showing with 20 additions and 2 deletions.
  1. +8 −2 lib/Business/CyberSource/Factory/Request.pm
  2. +12 −0 t/factory-request.t
View
10 lib/Business/CyberSource/Factory/Request.pm
@@ -5,8 +5,14 @@ use namespace::autoclean;
# VERSION
-use MooseX::AbstractFactory;
-implementation_class_via sub { 'Business::CyberSource::Request::' . shift };
+use Moose;
+BEGIN {
+ eval "use MooseX::AbstractFactory;" ## no critic (BuiltinFunctions::ProhibitStringyEval)
+ . "implementation_class_via "
+ . "sub { 'Business::CyberSource::Request::' . shift };"
+ . "1;"
+ ;
+}
__PACKAGE__->meta->make_immutable;
1;
View
12 t/factory-request.t
@@ -0,0 +1,12 @@
+use strict;
+use warnings;
+use Test::More;
+use Test::Requires qw( MooseX::AbstractFactory );
+
+use Module::Runtime qw( use_module );
+
+my $factory = new_ok( use_module('Business::CyberSource::Factory::Request') );
+
+can_ok( $factory, 'create' );
+
+done_testing;
Please sign in to comment.
Something went wrong with that request. Please try again.