-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
who's watching the watchers? :-)
my $source_id_type = Moose::Util::TypeConstraints::find_type_constraint( 'StripeSourceId' );
isa_ok $source_id_type, 'Moose::Meta::TypeConstraint';
lives_ok { $source_id_type->assert_valid( 'src_123' ) } 'valid source id';
throws_ok { $source_id_type->assert_valid( 'cus_123' ) } qr/Value 'cus_123' must be a source id string of the form src_\.\+/, 'invalid source id';
Metadata
Metadata
Assignees
Labels
No labels