Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 040_type_constraints / 032_throw_error.t
CommitLineData
5a592ad7 1use strict;
2# This is automatically generated by author/import-moose-test.pl.
3# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4use t::lib::MooseCompat;
5use warnings;
6
7use Test::More;
8$TODO = q{Mouse is not yet completed};
9
10use Mouse::Util::TypeConstraints;
11
12
13eval { Mouse::Util::TypeConstraints::create_type_constraint_union() };
14
15like( $@, qr/\QYou must pass in at least 2 type names to make a union/,
16 'can throw a proper error without Mouse being loaded by the caller' );
17
18done_testing;