From: Yuval Kogman <nothingmuch@woobling.org>
Date: Fri, 25 Sep 2009 19:48:18 +0000 (+0300)
Subject: Test for a more standard error from load_class
X-Git-Tag: 0.93~39
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d0901cccb2850d16693c5fc9642bd53938e25d5e;p=gitmo%2FMoose.git

Test for a more standard error from load_class
---

diff --git a/t/010_basics/002_require_superclasses.t b/t/010_basics/002_require_superclasses.t
index 36859ca..ba210e4 100644
--- a/t/010_basics/002_require_superclasses.t
+++ b/t/010_basics/002_require_superclasses.t
@@ -38,7 +38,8 @@ use Test::More tests => 5;
     use Moose;
 
     eval { extends 'No::Class'; };
-    ::ok($@, '... could not find the superclass (as expected)');
-    ::like($@, qr/^Could not load class \(No\:\:Class\) because \:/, '... and got the error we expected');
+    my $e = $@;
+    ::ok($e, '... could not find the superclass (as expected)');
+    ::like($e, qr{Can't locate No/Class\.pm in \@INC}, '... and got the error we expected');
 }