From: Dave Rolsky Date: Mon, 10 Nov 2008 23:38:28 +0000 (+0000) Subject: Reformat to my style X-Git-Tag: 0.07~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fefc111fbc578ed3c79ec6ca7f438ca5e88220e5;p=gitmo%2FMooseX-ClassAttribute.git Reformat to my style --- diff --git a/t/04-with-attribute-helpers.t b/t/04-with-attribute-helpers.t index e1cf84a..4154b5a 100644 --- a/t/04-with-attribute-helpers.t +++ b/t/04-with-attribute-helpers.t @@ -1,23 +1,23 @@ -#!/usr/bin/env perl use strict; use warnings; + use Test::More tests => 2; -do { +{ package MyClass; + use MooseX::ClassAttribute; use MooseX::AttributeHelpers; - class_has counter => ( - metaclass => 'Counter', - is => 'ro', - provides => { - inc => 'inc_counter', - }, - ); -}; + class_has counter => + ( metaclass => 'Counter', + is => 'ro', + provides => { inc => 'inc_counter', + }, + ); +} -is(MyClass->counter, 0); -MyClass->inc_counter; -is(MyClass->counter, 1); +is( MyClass->counter(), 0 ); +MyClass->inc_counter(); +is( MyClass->counter(), 1 );