some formatting fixes and removal of stray attribute
[catagits/Reaction.git] / t / lib / RTest / TestDB / Baz.pm
index 3ab411d..3b0306e 100644 (file)
@@ -10,7 +10,15 @@ use Reaction::Types::Core qw/NonEmptySimpleStr/;
 
 has 'id' => (isa => Int, is => 'ro', required => 1);
 has 'name' => (isa => NonEmptySimpleStr, is => 'rw', required => 1);
-has 'foo_list' => (isa => ArrayRef, is => 'ro', required => 1);
+has 'foo_list' => (
+  isa => ArrayRef,
+  is => 'rw',
+  required => 1,
+  writer => 'set_foo_list',
+  reader => 'get_foo_list',
+);
+
+around get_foo_list => sub { [ $_[1]->foo_list->all ] };
 
 use namespace::clean -except => [ 'meta' ];