Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 900_mouse_bugs / 012_RT61906.t
CommitLineData
0464d337 1#!perl
2#https://rt.cpan.org/Ticket/Display.html?id=61906
3use strict;
4use warnings;
5use Test::More;
6
7package MouseObj;
8use Mouse 0.78;
9
10has 'only_accessor' => (
11 is => 'rw',
12 isa => 'Int',
13 accessor => 'only_accessor_accessor',
14);
15
16has 'accesor_and_writer' => (
17 is => 'rw',
18 isa => 'Int',
19 accessor => 'accesor_and_writer_accessor',
20 writer => 'accesor_and_writer_writer',
21);
22
23has 'not_with_is' => (
24 isa => 'Int',
25 accessor => 'not_with_is_accessor',
26);
27
28package main;
29
30can_ok('MouseObj', 'only_accessor_accessor');
31can_ok('MouseObj', 'accesor_and_writer_accessor');
32can_ok('MouseObj', 'accesor_and_writer_writer');
33can_ok('MouseObj', 'not_with_is_accessor');
34
35done_testing;