From: Dave Rolsky <autarch@urth.org>
Date: Thu, 28 Oct 2010 17:46:29 +0000 (-0500)
Subject: Don't import Test::Exception into classes we are testing
X-Git-Tag: 1.18~33
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f52bf4726d4bf9e09286118e61109034360d13c3;p=gitmo%2FMoose.git

Don't import Test::Exception into classes we are testing
---

diff --git a/t/030_roles/013_method_aliasing_in_composition.t b/t/030_roles/013_method_aliasing_in_composition.t
index 6487561..cbe8bf1 100644
--- a/t/030_roles/013_method_aliasing_in_composition.t
+++ b/t/030_roles/013_method_aliasing_in_composition.t
@@ -170,9 +170,7 @@ ok(My::Foo::AliasOnly->meta->has_method('foo_foo'), '.. and the aliased foo_foo
     package Role::Bar;
     use Moose::Role;
 
-    use Test::Exception;
-
-    lives_ok {
+    ::lives_ok {
         with 'Role::Foo' => {
             -alias    => { x1 => 'foo_x1' },
             -excludes => ['y1'],
@@ -194,9 +192,7 @@ ok(My::Foo::AliasOnly->meta->has_method('foo_foo'), '.. and the aliased foo_foo
     package Role::Baz;
     use Moose::Role;
 
-    use Test::Exception;
-
-    lives_ok {
+    ::lives_ok {
         with 'Role::Foo' => {
             -alias    => { x1 => 'foo_x1' },
             -excludes => ['y1'],