From: Shawn M Moore Date: Mon, 10 Nov 2008 22:03:19 +0000 (+0000) Subject: The bug is in ClassAttribute :) X-Git-Tag: 0.16~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=53e73a93e7012f9fc1ce294e5c2063a5d31968da;p=gitmo%2FMooseX-AttributeHelpers.git The bug is in ClassAttribute :) --- diff --git a/t/900_class_attribute.t b/t/900_class_attribute.t deleted file mode 100644 index 33cdc3b..0000000 --- a/t/900_class_attribute.t +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; -use Test::More; -use MooseX::AttributeHelpers; - -do { - package TestClass; - BEGIN { - ::plan skip_all => "MooseX::ClassAttribute 0.05 required for this test" - unless eval { - require MooseX::ClassAttribute; - MooseX::ClassAttribute->VERSION('0.05'); - }; - ::plan tests => 2; - MooseX::ClassAttribute->import; - } - - class_has counter => ( - metaclass => 'Counter', - provides => { - inc => 'inc_counter', - }, - ); -}; - -is(TestClass->counter, 0); -TestClass->inc_counter; -is(TestClass->counter, 1); -