Move t/*/t into t/001_mouse
[gitmo/Mouse.git] / t / 001_mouse / 038-main.t
CommitLineData
7daedfff 1#!/usr/bin/env perl
2use strict;
3use warnings;
4use Test::More;
5
6BEGIN {
7 eval "use Test::Output;";
8 plan skip_all => "Test::Output is required for this test" if $@;
9 plan tests => 2;
10}
11
12stderr_is(
13 sub { package main; eval 'use Mouse' },
14 "Mouse does not export its sugar to the 'main' package.\n",
15 'Mouse warns when loaded from the main package',
16);
17
18stderr_is(
19 sub { package main; eval 'use Mouse::Role' },
20 "Mouse::Role does not export its sugar to the 'main' package.\n",
21 'Mouse::Role warns when loaded from the main package',
22);
23