Skip to content

Commit

Permalink
fix typo in TypeConstraint unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sherrardb committed Feb 14, 2020
1 parent 8a64af0 commit 079e182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/live.t
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ TypeConstraints: {
my $invalid = 'xxx_123';
isa_ok $constraint, 'Moose::Meta::TypeConstraint';
lives_ok { $constraint->assert_valid( $valid ) } "valid $object id";
throws_ok { $constraint->assert_valid( $invalid ) } qr/Value '$invalid' must be a $object id string of the form $prefix\.\+/, 'invalid source id';
throws_ok { $constraint->assert_valid( $invalid ) } qr/Value '$invalid' must be a $object id string of the form $prefix\.\+/, "invalid $object id";
}
}

Expand Down

0 comments on commit 079e182

Please sign in to comment.