use strict;
use warnings;
-use Test::More tests => 21;
+use Test::More tests => 22;
use Test::Exception;
+use Test::Output;
+
-BEGIN {
- use_ok('Moose');
-}
## Roles
package Constraint::AtLeast;
use Moose;
- with 'Constraint';
+ ::stderr_is {
+ with 'Constraint' => { excludes => 'error_message' };
+ } "";
sub validate {
my ($self, $field) = @_;
package Constraint::NoMoreThan;
use Moose;
- with 'Constraint';
+ ::stderr_is {
+ with 'Constraint' => { excludes => 'error_message' };
+ } '';
sub validate {
my ($self, $field) = @_;