Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 010_basics / 013_create.t
index cd933d5..1d1d28f 100644 (file)
@@ -1,12 +1,9 @@
 #!/usr/bin/perl
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
 
 use strict;
 use warnings;
 
-use Test::More;
+use Test::More tests => 7;
 use Test::Exception;
 
 {
@@ -49,7 +46,7 @@ throws_ok {
     );
 } qr/You must pass an ARRAY ref of roles/;
 
-ok !Made::Of::Fail->isa('UNIVERSAL'), "did not create Made::Of::Fail";
+ok !Mouse::Util::is_class_loaded('Made::Of::Fail'), "did not create Made::Of::Fail";
 
 dies_ok {
     Mouse::Meta::Class->create(
@@ -61,4 +58,3 @@ dies_ok {
 
 # XXX: Continuing::To::Fail gets created anyway
 
-done_testing;