2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
12 # This tests the error handling in Mouse::Object only
19 throws_ok { Foo->new('bad') } qr/^\QSingle parameters to new() must be a HASH ref/,
20 'A single non-hashref arg to a constructor throws an error';
21 throws_ok { Foo->new(undef) } qr/^\QSingle parameters to new() must be a HASH ref/,
22 'A single non-hashref arg to a constructor throws an error';
24 throws_ok { Foo->does() } qr/^\QYou must supply a role name to does()/,
25 'Cannot call does() without a role name';