Fix release date
[gitmo/Moose.git] / t / 010_basics / 016_load_into_main.t
CommitLineData
7ff56534 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
8b23f9f8 6use Test::More tests => 2;
7use Test::Output;
7ff56534 8
9stderr_is( sub { package main; eval 'use Moose' },
10 "Moose does not export its sugar to the 'main' package.\n",
11 'Moose warns when loaded from the main package' );
f967bf02 12
13stderr_is( sub { package main; eval 'use Moose::Role' },
14 "Moose::Role does not export its sugar to the 'main' package.\n",
15 'Moose::Role warns when loaded from the main package' );