Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 500_test_moose / 004_test_moose_meta_ok.t
CommitLineData
ca5d8e24 1#!/usr/bin/perl
2# This is automatically generated by author/import-moose-test.pl.
3# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4use t::lib::MooseCompat;
5
6use strict;
7use warnings;
8
9use Test::Builder::Tester;
10use Test::More;
11
12BEGIN {
13 use_ok('Test::Mouse');
14}
15
16{
17 package Foo;
18 use Mouse;
19}
20
21{
22 package Bar;
23}
24
25test_out('ok 1 - ... meta_ok(Foo) passes');
26
27meta_ok('Foo', '... meta_ok(Foo) passes');
28
29test_out ('not ok 2 - ... meta_ok(Bar) fails');
30test_fail (+2);
31
32meta_ok('Bar', '... meta_ok(Bar) fails');
33
34test_test ('meta_ok');
35
36done_testing;