debug for button events - missed on last commit
[catagits/Reaction.git] / t / 05reflect_attr_from.t
CommitLineData
7adfd53f 1package TestMe2;
2use strict;
3use warnings;
4use Reaction::Class;
5use Reaction::Types::DateTime;
6
7has id => (is => 'ro', required => 1, isa => 'Int');
8has username => (is => 'rw', required => 1, isa => 'NonEmptySimpleStr');
9has created_d => (is => 'rw', required => 1, isa => 'DateTime');
10
111;
12
13package TestMe;
14use strict;
15use warnings;
16use Reaction::Class;
17
18reflect_attributes_from('TestMe2' => qw(id username created_d));
19
201;
21
22package main;
23use strict;
24use warnings;
25use Data::Dumper;
26use Test::More;
27
28plan tests => 1;
29
30my @test_list = TestMe->meta->get_attribute_list;
31my @test2_list = TestMe2->meta->get_attribute_list;
32is_deeply(\@test_list, \@test2_list, "Attribute lists match");
33
341;