X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F400-define-role.t;h=5e1e2d10b53cd1434ec3b75ad5f321b3bfb7ff93;hb=3118622d182add6c88792d5de3b4af047e8a7c8c;hp=65c151ed122d50c7e0cb37afcaca24a67b8ac5fe;hpb=2badb84a6fe5f279c120179030f77c62d9b4dd05;p=gitmo%2FMouse.git diff --git a/t/400-define-role.t b/t/400-define-role.t index 65c151e..5e1e2d1 100644 --- a/t/400-define-role.t +++ b/t/400-define-role.t @@ -1,8 +1,8 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More tests => 12; -use Test::Exception; +use Test::More tests => 11; +use t::Exception; lives_ok { package Role; @@ -55,23 +55,14 @@ do { no Mouse::Role; }; -throws_ok { +lives_ok { package Role; use Mouse::Role; with 'Other::Role'; no Mouse::Role; -} qr/Mouse::Role does not currently support 'with'/; - -throws_ok { - package Role; - use Mouse::Role; - - requires 'required'; - - no Mouse::Role; -} qr/Mouse::Role does not currently support 'requires'/; +}; throws_ok { package Role;