Add another MOOSE_TEST_MD option, MooseX
[gitmo/Moose.git] / t / bugs / subtype_quote_bug.t
CommitLineData
e9ec68d6 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::More;
e9ec68d6 7
8=pod
9
10This is a test for a bug found by Purge on #moose:
11The code:
12
13 subtype Stuff
14 => as Object
15 => where { ... }
d03bd989 16
17will break if the Object:: namespace exists. So the
e9ec68d6 18solution is to quote 'Object', like so:
19
20 subtype Stuff
21 => as 'Object'
22 => where { ... }
23
d03bd989 24Moose 0.03 did this, now it doesn't, so all should
25be well from now on.
e9ec68d6 26
27=cut
28
29{ package Object::Test; }
30
a28e50e4 31{
32 package Foo;
33 ::use_ok('Moose');
34}
35
36done_testing;