add with_immutable test helper
[gitmo/Moose.git] / t / 500_test_moose / 005_with_immutable.t
CommitLineData
f2ca7ada 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::Builder::Tester tests => 2;
7use Test::More;
8
9BEGIN {
10 use_ok('Test::Moose');
11}
12
13{
14 package Foo;
15 use Moose;
16}
17
18package main;
19
20test_out("ok 1", "not ok 2");
21test_fail(+2);
22with_immutable {
23 ok(Foo->meta->is_mutable);
24} qw(Foo);
25
26test_test('with_immutable');