Implement inversed logic when defining which attribute options can be changed
[gitmo/Moose.git] / t / 020_attributes / 009_attribute_inherited_slot_specs.t
index 593c9d4..1a61073 100644 (file)
@@ -8,6 +8,14 @@ use Test::Exception;
 
 
 {
+    package Thing::Meta::Attribute;
+    use Moose;
+
+    extends 'Moose::Meta::Attribute';
+    around illegal_options_for_inheritance => sub {
+        return (shift->(@_), qw/trigger/);
+    };
+
     package Thing;
     use Moose;
 
@@ -43,7 +51,7 @@ use Test::Exception;
 
     # this one will work here ....
     has 'fail' => (isa => 'CodeRef', is => 'bare');
-    has 'other_fail' => (is => 'bare');
+    has 'other_fail' => (metaclass => 'Thing::Meta::Attribute', is => 'bare');
 
     package Bar;
     use Moose;