use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More;
-BEGIN {
- use_ok('Moose');
-}
\ No newline at end of file
+{
+ package Foo;
+
+ # Moose will issue a warning if we try to load it from the main
+ # package.
+ ::use_ok('Moose');
+}
+
+done_testing;