We stopped complaining about importing to main ages ago
Florian Ragwitz [Mon, 14 Mar 2011 04:00:34 +0000 (05:00 +0100)]
t/000_load.t

index 38e83d5..9cb0512 100644 (file)
@@ -5,12 +5,8 @@ use warnings;
 
 use Test::More;
 
-{
-    package Foo;
-
-    # Moose will issue a warning if we try to load it from the main
-    # package.
-    ::use_ok('Moose');
+BEGIN {
+    use_ok('Moose');
 }
 
 done_testing;