1. Toby Inkster
  2. p5-moox-classattribute

Commits

Toby Inkster  committed 8447bdc

failing test (Moo added the ability to specify non-reference defaults without the coderef)

  • Participants
  • Parent commits d981bf8
  • Branches default

Comments (0)

Files changed (1)

File t/02class.t

View file
  • Ignore whitespace
 
 is(Bar->bar, "Elephant");
 
+{
+	package Baz;
+	use Moo;
+	use MooX::ClassAttribute;
+	extends 'Bar';
+	class_has baz => ( is => 'rw', default => "Monkey" );
+}
+
+is(Baz->baz, "Monkey");
+
 diag "*** The Moose awakes!!" if $INC{'Moose.pm'};
 done_testing;